Mercurial > hg > freeDiameter
changeset 680:63a57bc7dc12
Fix segfault
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 18 Jan 2011 14:34:33 +0900 |
parents | c517666b59ca |
children | 0badcf42850d |
files | extensions/app_radgw/rgwx_auth.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/app_radgw/rgwx_auth.c Tue Jan 18 14:28:33 2011 +0900 +++ b/extensions/app_radgw/rgwx_auth.c Tue Jan 18 14:34:33 2011 +0900 @@ -1165,20 +1165,20 @@ ahdr->avp_value->u32, oh->avp_value->os.len, oh->avp_value->os.data, sid->avp_value->os.len, sid->avp_value->os.data); - CHECK_FCT( fd_msg_search_avp (*diam_ans, cs->dict.Error_Message, &avp) ); - if (avp) { - CHECK_FCT( fd_msg_avp_hdr ( avp, &ahdr ) ); + CHECK_FCT( fd_msg_search_avp (*diam_ans, cs->dict.Error_Message, &avp_x) ); + if (avp_x) { + CHECK_FCT( fd_msg_avp_hdr ( avp_x, &ahdr ) ); fd_log_debug("[auth.rgwx] Error-Message content: '%.*s'\n", ahdr->avp_value->os.len, ahdr->avp_value->os.data); } - CHECK_FCT( fd_msg_search_avp (*diam_ans, cs->dict.Error_Reporting_Host, &avp) ); - if (avp) { - CHECK_FCT( fd_msg_avp_hdr ( avp, &ahdr ) ); + CHECK_FCT( fd_msg_search_avp (*diam_ans, cs->dict.Error_Reporting_Host, &avp_x) ); + if (avp_x) { + CHECK_FCT( fd_msg_avp_hdr ( avp_x, &ahdr ) ); fd_log_debug("[auth.rgwx] Error-Reporting-Host: '%.*s'\n", ahdr->avp_value->os.len, ahdr->avp_value->os.data); } - CHECK_FCT( fd_msg_search_avp (*diam_ans, cs->dict.Failed_AVP, &avp) ); - if (avp) { + CHECK_FCT( fd_msg_search_avp (*diam_ans, cs->dict.Failed_AVP, &avp_x) ); + if (avp_x) { fd_log_debug("[auth.rgwx] Failed-AVP was included in the message.\n"); /* Dump its content ? */ }