Changeset 889:4a299daed8b2 in freeDiameter for libfdproto
- Timestamp:
- Nov 18, 2012, 6:52:50 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/messages.c
r871 r889 1686 1686 static int parsedict_do_chain(struct dictionary * dict, struct fd_list * head, int mandatory, struct fd_pei *error_info); 1687 1687 1688 static char error_message[256]; 1689 1688 1690 /* Process an AVP. If we are not in recheck, the avp_source must be set. */ 1689 1691 static int parsedict_do_avp(struct dictionary * dict, struct avp * avp, int mandatory, struct fd_pei *error_info) … … 1769 1771 if ((avp_value_sizes[dictdata.avp_basetype] != 0) && 1770 1772 (avp->avp_public.avp_len - GETAVPHDRSZ( avp->avp_public.avp_flags ) != avp_value_sizes[dictdata.avp_basetype])) { 1771 TRACE_DEBUG(INFO, "The AVP size is not suitable for the type."); 1773 TRACE_DEBUG(INFO, "The AVP size is not suitable for the type:"); 1774 fd_msg_dump_one(INFO, avp); 1772 1775 if (error_info) { 1773 1776 error_info->pei_errcode = "DIAMETER_INVALID_AVP_LENGTH"; 1774 1777 error_info->pei_avp = avp; 1778 snprintf(error_message, sizeof(error_message), "I expected a size of %d for this AVP according to my dictionary", avp_value_sizes[dictdata.avp_basetype]); 1779 error_info->pei_message = error_message; 1775 1780 } 1776 1781 return EBADMSG; … … 1788 1793 error_info->pei_errcode = "DIAMETER_INVALID_AVP_VALUE"; 1789 1794 error_info->pei_avp = avp; 1795 snprintf(error_message, sizeof(error_message), "I cannot parse this AVP as a Grouped AVP"); 1796 error_info->pei_message = error_message; 1790 1797 } 1791 1798 return ret;
Note: See TracChangeset
for help on using the changeset viewer.