From: Alexandr Anikin Date: Thu, 3 May 2012 14:18:25 +0000 (+0000) Subject: Fix coverity static analysis warning, allocate full ie structure X-Git-Tag: 1.8.14.0-rc1~3^2~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b9bca22bd40776314dcc4f75d3a0ba5e018ae7b;p=thirdparty%2Fasterisk.git Fix coverity static analysis warning, allocate full ie structure instead of without data buffer (close issue ASTERISK-19674) Reported by: Matt Jordan Patches: ASTERISK-19674.patch (License #5415) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@365143 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/ooh323c/src/ooq931.c b/addons/ooh323c/src/ooq931.c index 01163510ed..ae54c7b1f2 100644 --- a/addons/ooh323c/src/ooq931.c +++ b/addons/ooh323c/src/ooq931.c @@ -140,7 +140,7 @@ EXTERN int ooQ931Decode } else { ie = (Q931InformationElement*) memAlloc (pctxt, - sizeof(*ie) - sizeof(ie->data)); + sizeof(*ie)); if(!ie) { OOTRACEERR3("Error:Memory - ooQ931Decode - ie(%s, %s)\n",