Module: sip-router
Branch: kamailio_3.0
Commit: 369d7598244c60c2c8e4d601e166a03cb211128c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=369d759…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 24 21:21:59 2010 +0100
uac(k): use header types for detection
---
modules_k/uac/auth.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules_k/uac/auth.c b/modules_k/uac/auth.c
index 78f51d5..0fb3e25 100644
--- a/modules_k/uac/auth.c
+++ b/modules_k/uac/auth.c
@@ -232,9 +232,9 @@ static inline struct hdr_field *get_autenticate_hdr(struct sip_msg
*rpl,
}
for( hdr=rpl->headers ; hdr ; hdr=hdr->next )
{
- if((rpl_code==WWW_AUTH_CODE && hdr->type==HDR_WWW_AUTHENTICATE_T)
- || (rpl_code==PROXY_AUTH_CODE
- && hdr->type==HDR_PROXY_AUTHENTICATE_T))
+ if ( rpl_code==WWW_AUTH_CODE && hdr->type==HDR_WWW_AUTHENTICATE_T )
+ return hdr;
+ if ( rpl_code==PROXY_AUTH_CODE && hdr->type==HDR_PROXY_AUTHENTICATE_T )
return hdr;
}