changeset 284:9d4f11540367

Fix test in function
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 19 Dec 2008 17:15:39 +0900
parents 1e6ed3a7c355
children 0e683f493edb
files waaad/message.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/waaad/message.c	Fri Dec 19 17:04:38 2008 +0900
+++ b/waaad/message.c	Fri Dec 19 17:15:39 2008 +0900
@@ -968,10 +968,9 @@
 	
 	CHECK_FCT(  dict_getval(avp->avp_model, &dictdata)  );
 	
-	if (recheck) {
-		/* The data is supposed to be in avp->avp_rawdata. We set source to the same location so that the processing is the same */
+	if (recheck && avp->avp_rawdata) {
+		/* This happens if the dictionary object was defined after the first check */
 		avp->avp_source = avp->avp_rawdata;
-		CHECK_PARAMS( avp->avp_source );
 	}
 	
 	/* A bit of sanity here... */
"Welcome to our mercurial repository"