Sfoglia il codice sorgente

nathelper(k): fixed content type check

- mistakenly introduced with multipart body support
- reported by Pascal Maugeri
Daniel-Constantin Mierla 16 anni fa
parent
commit
a0993fbf1d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      modules_k/nathelper/nhelpr_funcs.c

+ 1 - 1
modules_k/nathelper/nhelpr_funcs.c

@@ -200,7 +200,7 @@ int extract_body(struct sip_msg *msg, str *body )
 	/* no need for parse_headers(msg, EOH), get_body will 
 	 * parse everything */
 	/*is the content type correct?*/
-	if((ret = check_content_type(msg))==1)
+	if((ret = check_content_type(msg))==-1)
 	{
 		LM_ERR("content type mismatching\n");
 		goto error;