[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:
Stefan Knoblich 2008-09-01 17:32:30 +00:00
parent 31edae1ab5
commit 010987ebfc
1 changed files with 3 additions and 0 deletions

View 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;