[sr-dev] git:master: nathelper(k): fixed content type check

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 23 11:59:56 CEST 2009


Module: sip-router
Branch: master
Commit: a0993fbf1d35b27644c6837eff3832c1e12d2495
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a0993fbf1d35b27644c6837eff3832c1e12d2495

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Jun 23 11:58:26 2009 +0200

nathelper(k): fixed content type check

- mistakenly introduced with multipart body support
- reported by Pascal Maugeri

---

 modules_k/nathelper/nhelpr_funcs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/nathelper/nhelpr_funcs.c b/modules_k/nathelper/nhelpr_funcs.c
index 95f2133..50ec7d5 100644
--- a/modules_k/nathelper/nhelpr_funcs.c
+++ b/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;




More information about the sr-dev mailing list