File opensips-1.6.3-sst_handlers.patch of Package opensips

diff -ruN opensips-1.6.3-tls-orig/modules/sst/sst_handlers.c opensips-1.6.3-tls/modules/sst/sst_handlers.c
--- opensips-1.6.3-tls-orig/modules/sst/sst_handlers.c	2010-07-22 16:17:39.000000000 +0200
+++ opensips-1.6.3-tls/modules/sst/sst_handlers.c	2010-11-04 14:26:47.000000000 +0100
@@ -322,8 +322,9 @@
 
 		info->interval = MAX(minfo.min_se, sst_min_se);
 
-		if (minfo.min_se && minfo.min_se < sst_min_se) {
-			remove_minse_header(msg);
+		if (minfo.min_se < sst_min_se) {
+			if (minfo.min_se)
+				remove_minse_header(msg);
 			snprintf(buf, 80, "Min-SE: %d\r\n", info->interval);
 			if (append_header(msg, buf)) {
 				LM_ERR("failed to append modified Min-SE: header\n");
openSUSE Build Service is sponsored by