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

FreeSWITCH SVN mikej at freeswitch.org
Fri May 15 09:07:59 PDT 2009


Author: mikej
Date: Fri May 15 11:07:59 2009
New Revision: 13340

Log:
Wed May 13 11:18:27 CDT 2009  Pekka Pessi <first.last at nokia.com>
  * msg_header_copy.c: unobfuscated msg_default_dup_one()
  Ignore-this: 1fda1941baecad1f6397de453e606f1c
  
  Coverity issue.


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

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Fri May 15 11:07:59 2009
@@ -1 +1 @@
-Fri May 15 11:06:55 CDT 2009
+Fri May 15 11:07:28 CDT 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_header_copy.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_header_copy.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_header_copy.c	Fri May 15 11:07:59 2009
@@ -346,9 +346,9 @@
 			  char *b,
 			  isize_t xtra)
 {
-  memcpy(&h->sh_header_next[1],
-	 &src->sh_header_next[1],
-	 h->sh_class->hc_size - offsetof(msg_header_t, sh_header_next[1]));
+  size_t skip = offsetof(msg_numeric_t, x_value);  /* Skip common part */
+
+  memcpy((char *)h + skip, (char const *)src + skip, h->sh_class->hc_size - skip);
 
   return b;
 }



More information about the Freeswitch-svn mailing list