Browse Source

sst: fix flag condtion in sst_check_min()

Daniel-Constantin Mierla 8 years ago
parent
commit
8fc83e83cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/sst/sst_handlers.c

+ 1 - 1
src/modules/sst/sst_handlers.c

@@ -675,7 +675,7 @@ int sst_check_min(struct sip_msg *msg, char *flag, char *str2)
 			 * Too small. See if we need to send the 422 and are able
 			 * to send it.
 			 */
-			if (flag) {
+			if (flag && *flag) {
 				str msehdr;
 				sst_build_minse_hdr(sst_min_se, &msehdr);
 				LM_DBG("Sending 422: %.*s\n", msehdr.len, msehdr.s);