re-set our decode buffer to get rid of the previous message.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@496 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2008-07-01 22:34:59 +00:00
parent 114a0a8afb
commit 522baa05a7
1 changed files with 5 additions and 2 deletions

View File

@ -340,10 +340,13 @@ L3INT Q931Rx23(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT Size)
L3INT IOff = 0;
/* Protocol Discriminator */
/* Reset our decode buffer */
memset(pTrunk->L3Buf, 0, sizeof(pTrunk->L3Buf));
/* Protocol Discriminator */
m->ProtDisc = Mes[IOff++];
/* CRV */
/* CRV */add
m->CRVFlag = Mes[IOff + 1] & 0x80;
m->CRV = Q931Uie_CRV(pTrunk, Mes, m->buf, &IOff, &ISize);