From 28af3accb935b9dc48ff82e118143f8879a98498 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 15 May 2009 16:15:28 +0000 Subject: [PATCH] Wed May 13 13:18:14 CDT 2009 Pekka Pessi * msg_mclass_insert_header(): not using uninit data Ignore-this: 40a6993391b5f2993af8ee01c407c0c7 Coverity issue. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13349 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- .../libsofia-sip-ua/msg/msg_mclass.c | 20 +------------------ 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index cf76eebff7..6055133228 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Fri May 15 11:14:26 CDT 2009 +Fri May 15 11:14:57 CDT 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/msg/msg_mclass.c b/libs/sofia-sip/libsofia-sip-ua/msg/msg_mclass.c index 58c859615b..320ecc21b5 100644 --- a/libs/sofia-sip/libsofia-sip-ua/msg/msg_mclass.c +++ b/libs/sofia-sip/libsofia-sip-ua/msg/msg_mclass.c @@ -164,25 +164,7 @@ int msg_mclass_insert_header(msg_mclass_t *mc, 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.