[Freeswitch-svn] [commit] r13349 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/msg
FreeSWITCH SVN
mikej at freeswitch.org
Fri May 15 09:15:28 PDT 2009
Author: mikej
Date: Fri May 15 11:15:28 2009
New Revision: 13349
Log:
Wed May 13 13:18:14 CDT 2009 Pekka Pessi <first.last at nokia.com>
* msg_mclass_insert_header(): not using uninit data
Ignore-this: 40a6993391b5f2993af8ee01c407c0c7
Coverity issue.
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_mclass.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:15:28 2009
@@ -1 +1 @@
-Fri May 15 11:14:26 CDT 2009
+Fri May 15 11:14:57 CDT 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_mclass.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_mclass.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_mclass.c Fri May 15 11:15:28 2009
@@ -164,25 +164,7 @@
msg_hclass_t *hc,
unsigned short offset)
{
- msg_href_t hr[1];
-
- if (mc == NULL || hc == NULL) {
- errno = EINVAL;
- return -1;
- }
-
- if (msg_hclass_offset(mc, NULL, hc))
- return (void)(errno = EEXIST), -1;
-
- if (offset == 0)
- offset = mc->mc_msize, mc->mc_msize += sizeof(msg_header_t *);
-
- assert(offset < mc->mc_msize);
-
- hr->hr_class = hc;
- hr->hr_offset = offset;
-
- return msg_mclass_insert(mc, hr);
+ return msg_mclass_insert_with_mask(mc, hc, offset, 0);
}
/**Add a new header to the message class.
More information about the Freeswitch-svn
mailing list