Skip to content

Commit

Permalink
Fixed handling of REJECT return code.
Browse files Browse the repository at this point in the history
(cherry picked from commit 8e42553)
  • Loading branch information
bogdan-iancu committed Jun 6, 2014
1 parent 046b8a4 commit 7864fd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/aaa_radius/aaa_radius.c
Expand Up @@ -331,9 +331,9 @@ int send_auth_func(struct sip_msg* msg, str* s1, str* s2) {
}

res = rc_auth(rh, SIP_PORT, send, &recv, mess);
if (res!=OK_RC && res!=BADRESP_RC) {
if (res!=OK_RC && res!=REJECT_RC) {
LM_ERR("radius authentication message failed with %s\n",
(res==TIMEOUT_RC)?"TIMEOUT":"ERROR");
(res==TIMEOUT_RC)?"TIMEOUT":((res==BADRESP_RC)?"BAD REPLY":"ERROR"));
}else{
LM_DBG("radius authentication message sent\n");
}
Expand Down Expand Up @@ -364,7 +364,7 @@ int send_auth_func(struct sip_msg* msg, str* s1, str* s2) {
for(; (vp = rc_avpair_get(vp, attr->value, 0)); vp = vp->next)
extract_avp(vp);

if ( res!=OK_RC && res!=BADRESP_RC)
if ( res!=OK_RC && res!=REJECT_RC)
goto error;


Expand Down

0 comments on commit 7864fd2

Please sign in to comment.