[Freeswitch-svn] [commit] r8632 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/http

Freeswitch SVN mikej at freeswitch.org
Sun May 25 11:19:14 EDT 2008


Author: mikej
Date: Sun May 25 11:19:14 2008
New Revision: 8632

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/http/http_tag_class.c

Log:
Thu May 22 07:34:11 EDT 2008  Pekka.Pessi at nokia.com
  * http_tag_class.c: fixed klocwork issues


Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/http/http_tag_class.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/http/http_tag_class.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/http/http_tag_class.c	Sun May 25 11:19:14 2008
@@ -117,10 +117,13 @@
     http_header_t const *h, **hh;
 
     http = (http_t const *)src->t_value;
+    if (http == NULL)
+      return dst;
+
     mc = (void *)http->http_common->h_class;
     hh = (void *)msg_hclass_offset(mc, http, hc);
 
-    if (http == NULL ||
+    if (hh == NULL ||
 	(char *)hh >= ((char *)http + http->http_size) ||
 	(char *)hh < (char *)&http->http_request)
       return dst;



More information about the Freeswitch-svn mailing list