[sr-dev] git:tmp/k3.0_sr_backports: uac(k): use header types for detection
Andrei Pelinescu-Onciul
andrei at iptel.org
Wed Feb 3 23:05:55 CET 2010
Module: sip-router
Branch: tmp/k3.0_sr_backports
Commit: d3ca20fb9f4ca45930fc38552fa9dddb7a0aa636
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d3ca20fb9f4ca45930fc38552fa9dddb7a0aa636
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date: Sun Jan 24 21:21:59 2010 +0100
uac(k): use header types for detection
(cherry picked from commit 369d7598244c60c2c8e4d601e166a03cb211128c)
---
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;
}
More information about the sr-dev
mailing list