openbsd-ports/telephony/kamailio/patches/patch-modules_auth_auth_mod_c

34 lines
1.2 KiB
Plaintext

$OpenBSD: patch-modules_auth_auth_mod_c,v 1.3 2013/04/16 11:13:04 sthen Exp $
--- modules/auth/auth_mod.c.orig Mon Mar 11 17:27:18 2013
+++ modules/auth/auth_mod.c Sat Apr 13 09:30:54 2013
@@ -974,7 +974,7 @@ static int proxy_challenge(struct sip_msg *msg, char*
goto error;
}
- return auth_challenge(msg, &srealm, vflags, HDR_PROXYAUTH_T);
+ return auth_challenge_helper(msg, &srealm, vflags, HDR_PROXYAUTH_T, NULL);
error:
if(!(vflags&4)) {
@@ -1007,7 +1007,7 @@ static int www_challenge(struct sip_msg *msg, char* re
goto error;
}
- return auth_challenge(msg, &srealm, vflags, HDR_AUTHORIZATION_T);
+ return auth_challenge_helper(msg, &srealm, vflags, HDR_AUTHORIZATION_T, NULL);
error:
if(!(vflags&4)) {
@@ -1045,9 +1045,9 @@ static int w_auth_challenge(struct sip_msg *msg, char*
}
if(msg->REQ_METHOD==METHOD_REGISTER)
- return auth_challenge(msg, &srealm, vflags, HDR_AUTHORIZATION_T);
+ return auth_challenge_helper(msg, &srealm, vflags, HDR_AUTHORIZATION_T, NULL);
else
- return auth_challenge(msg, &srealm, vflags, HDR_PROXYAUTH_T);
+ return auth_challenge_helper(msg, &srealm, vflags, HDR_PROXYAUTH_T, NULL);
error:
if(!(vflags&4)) {