[sr-dev] git:master:4442bedb: Merge pull request #49 from mamikk/pvauth-checks-fix

Daniel-Constantin Mierla miconda at gmail.com
Wed Jan 21 22:31:16 CET 2015


Module: kamailio
Branch: master
Commit: 4442bedb85e4baadceed610e394e63c03b011657
URL: https://github.com/kamailio/kamailio/commit/4442bedb85e4baadceed610e394e63c03b011657

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-01-21T22:31:10+01:00

Merge pull request #49 from mamikk/pvauth-checks-fix

auth: use correct parameter for pv_auth_check checks

---

Modified: modules/auth/auth_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/4442bedb85e4baadceed610e394e63c03b011657.diff
Patch: https://github.com/kamailio/kamailio/commit/4442bedb85e4baadceed610e394e63c03b011657.patch

---

diff --git a/modules/auth/auth_mod.c b/modules/auth/auth_mod.c
index f4b74b1..fe57a89 100644
--- a/modules/auth/auth_mod.c
+++ b/modules/auth/auth_mod.c
@@ -755,7 +755,7 @@ static int pv_auth_check(sip_msg_t *msg, char *realm,
 		ret = pv_authenticate(msg, &srealm, &spasswd, vflags, HDR_PROXYAUTH_T,
 					&msg->first_line.u.request.method);
 
-	if(ret==AUTH_OK && (vflags&AUTH_CHECK_ID_F)) {
+	if(ret==AUTH_OK && (vchecks&AUTH_CHECK_ID_F)) {
 		hdr = (msg->proxy_auth==0)?msg->authorization:msg->proxy_auth;
 		srealm = ((auth_body_t*)(hdr->parsed))->digest.username.user;
 




More information about the sr-dev mailing list