diff libfdcore/messages.c @ 892:b2e8f1a3ef76

Allow the content of the Failed-AVP to be parseable to bufferize the message. The content is only padded currently
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 19 Nov 2012 08:58:40 +0100
parents 9432ac55823c
children 0a46772fad5d
line wrap: on
line diff
--- a/libfdcore/messages.c	Sat Nov 17 23:28:50 2012 +0100
+++ b/libfdcore/messages.c	Mon Nov 19 08:58:40 2012 +0100
@@ -240,7 +240,8 @@
 		CHECK_FCT( fd_msg_avp_new( dict_avp_FAVP, 0, &avp_FAVP ) );
 		
 		/* Create a new AVP with a copy of the data of the invalid or missing AVP */
-		CHECK_FCT( fd_msg_avp_new( NULL, AVPFL_SET_BLANK_VALUE, &optavp_cpy) );
+		optavp_cpy = optavp;
+		CHECK_FCT( fd_msg_avp_new( NULL, AVPFL_SET_BLANK_VALUE | AVPFL_SET_RAWDATA_FROM_AVP, &optavp_cpy) );
 		
 		CHECK_FCT( fd_msg_avp_hdr(optavp, &opt_hdr) );
 		CHECK_FCT( fd_msg_avp_hdr(optavp_cpy, &optcpy_hdr) );
"Welcome to our mercurial repository"