[Q.921] Init buffers with zeroes
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@526 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
dd1bc3d454
commit
7da014da8b
|
@ -576,6 +576,7 @@ static int Q921LogMesg(L2TRUNK trunk, Q921LogLevel_t level, L2UCHAR received, L2
|
||||||
if(!mes)
|
if(!mes)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
memset(buf, 0, sizeof(buf));
|
||||||
|
|
||||||
left = sizeof(buf) - 1;
|
left = sizeof(buf) - 1;
|
||||||
|
|
||||||
|
@ -598,6 +599,8 @@ static int Q921LogMesg(L2TRUNK trunk, Q921LogLevel_t level, L2UCHAR received, L2
|
||||||
L2UCHAR *pmes = mes + trunk->Q921HeaderSpace;
|
L2UCHAR *pmes = mes + trunk->Q921HeaderSpace;
|
||||||
struct Q921_Link *link;
|
struct Q921_Link *link;
|
||||||
|
|
||||||
|
memset(pbuf, 0, sizeof(pbuf));
|
||||||
|
|
||||||
pleft = sizeof(pbuf);
|
pleft = sizeof(pbuf);
|
||||||
poffset = 0;
|
poffset = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue