comparison libfdproto/messages.c @ 891:9432ac55823c

Tentative fix for the parse_or_error function
author Sebastien Decugis <sdecugis@freediameter.net>
date Sat, 17 Nov 2012 23:28:50 +0100
parents 4a299daed8b2
children b2e8f1a3ef76
comparison
equal deleted inserted replaced
890:19a261c9a2e1 891:9432ac55823c
1776 error_info->pei_errcode = "DIAMETER_INVALID_AVP_LENGTH"; 1776 error_info->pei_errcode = "DIAMETER_INVALID_AVP_LENGTH";
1777 error_info->pei_avp = avp; 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]); 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; 1779 error_info->pei_message = error_message;
1780 } 1780 }
1781 avp->avp_model = NULL;
1781 return EBADMSG; 1782 return EBADMSG;
1782 } 1783 }
1783 1784
1784 /* Now get the value inside */ 1785 /* Now get the value inside */
1785 switch (dictdata.avp_basetype) { 1786 switch (dictdata.avp_basetype) {
"Welcome to our mercurial repository"