]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Q.921] Init buffers with zeroes
authorStefan Knoblich <stkn@freeswitch.org>
Mon, 1 Sep 2008 17:32:30 +0000 (17:32 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Mon, 1 Sep 2008 17:32:30 +0000 (17:32 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@526 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/isdn/Q921.c

index 2c7c740251b6aa23c5e080acd65a1a30f0773a3a..d2ed969ba9b3eb7cc1dc1d5e2389acdb3ab83ed2 100644 (file)
@@ -576,6 +576,7 @@ static int Q921LogMesg(L2TRUNK trunk, Q921LogLevel_t level, L2UCHAR received, L2
        if(!mes)
                return 0;
 
+       memset(buf, 0, sizeof(buf));
 
        left = sizeof(buf) - 1;
 
@@ -598,6 +599,8 @@ static int Q921LogMesg(L2TRUNK trunk, Q921LogLevel_t level, L2UCHAR received, L2
                L2UCHAR *pmes = mes + trunk->Q921HeaderSpace;
                struct Q921_Link *link;
 
+               memset(pbuf, 0, sizeof(pbuf));
+
                pleft   = sizeof(pbuf);
                poffset = 0;