[Freeswitch-svn] [commit] r8615 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/sip

Freeswitch SVN mikej at freeswitch.org
Sun May 25 10:58:59 EDT 2008


Author: mikej
Date: Sun May 25 10:58:59 2008
New Revision: 8615

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c

Log:
Tue May 20 09:32:50 EDT 2008  Pekka.Pessi at nokia.com
  * sip_util.c: fixed klocwork issues


Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Sun May 25 10:58:59 2008
@@ -1 +1 @@
-Sun May 25 10:57:08 EDT 2008
+Sun May 25 10:58:52 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c	Sun May 25 10:58:59 2008
@@ -364,17 +364,17 @@
  */
 issize_t sip_header_field_d(su_home_t *home, sip_header_t *h, char *s, isize_t slen)
 {
-  assert(SIP_HDR_TEST(h));
-
   if (h && s && s[slen] == '\0') {
     size_t n = span_lws(s);
     s += n; slen -= n;
-    
+
     for (n = slen; n >= 1 && IS_LWS(s[n - 1]); n--)
       ;
     
     s[n] = '\0';
     
+    assert(SIP_HDR_TEST(h));
+
     return h->sh_class->hc_parse(home, h, s, slen);
   }
   else



More information about the Freeswitch-svn mailing list