Changeset 1559:2dbc816d48f4 in freeDiameter for libfdproto/messages.c
- Timestamp:
- Oct 27, 2020, 6:50:04 PM (3 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/messages.c
r1554 r1559 1777 1777 if (avp->avp_model == NULL) { 1778 1778 /* In the case where we don't know the type of AVP, just copy the raw data or source */ 1779 CHECK_PARAMS( avp->avp_source || avp->avp_rawdata );1779 /* there might be no data if the AVP is empty */ 1780 1780 1781 1781 if ( avp->avp_rawdata != NULL ) { … … 1783 1783 memcpy(&buffer[*offset], avp->avp_rawdata, avp->avp_rawlen); 1784 1784 *offset += PAD4(avp->avp_rawlen); 1785 } else {1785 } else if ( avp->avp_source != NULL ) { 1786 1786 /* the message was not parsed completely */ 1787 1787 size_t datalen = avp->avp_public.avp_len - GETAVPHDRSZ(avp->avp_public.avp_flags);
Note: See TracChangeset
for help on using the changeset viewer.