set size and location correctly

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@107 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2007-05-23 16:14:15 +00:00
parent 5f0b5353d2
commit 5e1d3ea15d
1 changed files with 3 additions and 2 deletions

View File

@ -2520,11 +2520,12 @@ L3INT Q931Uie_RestartInd(Q931_TrunkInfo_t *pTrunk, ie *pIE,L3UCHAR * IBuf, L3UCH
Q931IESizeTest(Q931E_RESTARTIND);
Q931SetIE(*pIE, *OOff);
*IOff = (*IOff) + Octet + Off;
*OOff = (*OOff) + sizeof(Q931ie_RestartInd);
pie->Size = sizeof(Q931ie_RestartInd);
Q931SetIE(*pIE, *OOff);
return Q931E_NO_ERROR;
}
@ -2553,7 +2554,7 @@ L3INT Q931Pie_RestartInd(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, L3UCHAR *OBuf,
/* Octet 3*/
OBuf[(*Octet)++] = 0x80 | pIE->Class ;
OBuf[li] = (L3UCHAR)((*Octet)-Beg);
OBuf[li] = (L3UCHAR)((*Octet)-Beg) - 2;
return rc;
}