wrong error message

mr3.2.1
Richard Fuchs 13 years ago
parent 56a4e991ef
commit 834b41a964

@ -12,7 +12,7 @@
+include ../../Makefile.modules +include ../../Makefile.modules
--- /dev/null --- /dev/null
+++ b/modules/tcap/tcap_mod.c +++ b/modules/tcap/tcap_mod.c
@@ -0,0 +1,129 @@ @@ -0,0 +1,128 @@
+#include <stdio.h> +#include <stdio.h>
+#include <stdlib.h> +#include <stdlib.h>
+#include <unistd.h> +#include <unistd.h>
@ -103,10 +103,9 @@
+ err = "No Content-Type found"; + err = "No Content-Type found";
+ if (!msg->content_type) + if (!msg->content_type)
+ goto error; + goto error;
+ err = "Truncated SIP packet"; + err = "Content-Type mismatch";
+ if (msg->content_type->body.len < content_type.len) + if (msg->content_type->body.len < content_type.len)
+ goto error; + goto error;
+ err = "Content-Type mismatch";
+ if (strncasecmp(msg->content_type->body.s, content_type.s, content_type.len)) + if (strncasecmp(msg->content_type->body.s, content_type.s, content_type.len))
+ goto error; + goto error;
+ +

Loading…
Cancel
Save