comparison libfdproto/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 8187364e39ea
comparison
equal deleted inserted replaced
891:9432ac55823c 892:b2e8f1a3ef76
229 229
230 if (flags & AVPFL_SET_BLANK_VALUE) { 230 if (flags & AVPFL_SET_BLANK_VALUE) {
231 new->avp_public.avp_value = &new->avp_storage; 231 new->avp_public.avp_value = &new->avp_storage;
232 } 232 }
233 233
234 if (flags & AVPFL_SET_RAWDATA_FROM_AVP) {
235 new->avp_rawlen = (*avp)->avp_public.avp_len - GETAVPHDRSZ( (*avp)->avp_public.avp_flags );
236 if (new->avp_rawlen) {
237 CHECK_MALLOC( new->avp_rawdata = malloc(new->avp_rawlen) );
238 memset(new->avp_rawdata, 0xFF, new->avp_rawlen);
239 }
240 }
241
234 /* The new object is ready, return */ 242 /* The new object is ready, return */
235 *avp = new; 243 *avp = new;
236 return 0; 244 return 0;
237 } 245 }
238 246
"Welcome to our mercurial repository"