diff libfdcore/peers.c @ 827:a8ed055a9253

Fix name of the constant errors used for rescode
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 20 Sep 2012 08:15:54 +0200
parents c47c16436f71
children 1d2721778c7a
line wrap: on
line diff
--- a/libfdcore/peers.c	Tue Sep 18 22:33:02 2012 +0200
+++ b/libfdcore/peers.c	Thu Sep 20 08:15:54 2012 +0200
@@ -474,7 +474,7 @@
 	if (!fd_os_is_valid_DiameterIdentity(avp_hdr->avp_value->os.data, avp_hdr->avp_value->os.len)) {
 		TRACE_DEBUG(INFO, "Received new CER with invalid Origin-Host");
 		CHECK_FCT( fd_msg_new_answer_from_req ( fd_g_config->cnf_dict, cer, MSGFL_ANSW_ERROR ) );
-		CHECK_FCT( fd_msg_rescode_set(*cer, "ER_DIAMETER_INVALID_AVP_VALUE", 
+		CHECK_FCT( fd_msg_rescode_set(*cer, "DIAMETER_INVALID_AVP_VALUE", 
 							"Your Origin-Host contains invalid characters.", avp_oh, 1 ) );
 		CHECK_FCT( fd_out_send(cer, *cnx, NULL, FD_CNX_ORDERED) );
 		return EINVAL;
"Welcome to our mercurial repository"