diff freeDiameter/messages.c @ 114:5b3868944e2b

Reporting errors in parse_dict function
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 08 Dec 2009 16:55:18 +0900
parents 215eeeeb0bd3
children 926e6b016778
line wrap: on
line diff
--- a/freeDiameter/messages.c	Tue Dec 08 15:38:09 2009 +0900
+++ b/freeDiameter/messages.c	Tue Dec 08 16:55:18 2009 +0900
@@ -292,10 +292,11 @@
 	
 	/* Parse the message against our dictionary */
 	ret = fd_msg_parse_rules ( m, fd_g_config->cnf_dict, &pei);
-	if (ret != EBADMSG)
+	if 	((ret != EBADMSG) 	/* Parsing grouped AVP failed / Conflicting rule found */
+		&& (ret != ENOTSUP))	/* Command is not supported / Mandatory AVP is not supported */
 		return ret;
 	
-	fd_log_debug("The following message does not comply to the dictionary and rules (%s):\n", pei.pei_errcode);
+	fd_log_debug("The following message does not comply to the dictionary and/or rules (%s):\n", pei.pei_errcode);
 	fd_msg_dump_walk(NONE, m);
 	
 	/* Now create an answer error if the message is a query */
"Welcome to our mercurial repository"