changeset 283:1e6ed3a7c355

Add some traces for easier debug
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 19 Dec 2008 17:04:38 +0900
parents 7dd2124f7633
children 9d4f11540367
files waaad/message.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/waaad/message.c	Fri Dec 19 16:43:29 2008 +0900
+++ b/waaad/message.c	Fri Dec 19 17:04:38 2008 +0900
@@ -971,6 +971,7 @@
 	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 */
 		avp->avp_source = avp->avp_rawdata;
+		CHECK_PARAMS( avp->avp_source );
 	}
 	
 	/* A bit of sanity here... */
@@ -993,6 +994,7 @@
 			
 		case AVP_TYPE_OCTETSTRING:
 			/* We just have to copy the string into the storage area */
+			CHECK_PARAMS( avp->avp_public.avp_len > GETAVPHDRSZ( avp->avp_public.avp_flags ) );
 			avp->avp_storage.os.len = avp->avp_public.avp_len - GETAVPHDRSZ( avp->avp_public.avp_flags );
 			CHECK_MALLOC(  avp->avp_storage.os.data = malloc(avp->avp_storage.os.len)  );
 			avp->avp_mustfreeos = 1;
"Welcome to our mercurial repository"