[sr-dev] git:5.6:3839eed2: auth: coherent log message content with header parsing

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 4 11:00:30 CEST 2022


Module: kamailio
Branch: 5.6
Commit: 3839eed219ab2da2e441cdfb82adbba24b03c035
URL: https://github.com/kamailio/kamailio/commit/3839eed219ab2da2e441cdfb82adbba24b03c035

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-07-04T10:36:13+02:00

auth: coherent log message content with header parsing

(cherry picked from commit 267d4ad48ac8426b3d5c53724281605a74d07999)

---

Modified: src/modules/auth/auth_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/3839eed219ab2da2e441cdfb82adbba24b03c035.diff
Patch: https://github.com/kamailio/kamailio/commit/3839eed219ab2da2e441cdfb82adbba24b03c035.patch

---

diff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c
index cc16643eb49..53e02f21056 100644
--- a/src/modules/auth/auth_mod.c
+++ b/src/modules/auth/auth_mod.c
@@ -450,12 +450,12 @@ int ki_has_credentials(sip_msg_t *msg, str* srealm)
 
 	ret = find_credentials(msg, srealm, HDR_PROXYAUTH_T, &hdr);
 	if(ret==0) {
-		LM_DBG("found www credentials with realm [%.*s]\n", srealm->len, srealm->s);
+		LM_DBG("found proxy credentials with realm [%.*s]\n", srealm->len, srealm->s);
 		return 1;
 	}
 	ret = find_credentials(msg, srealm, HDR_AUTHORIZATION_T, &hdr);
 	if(ret==0) {
-		LM_DBG("found proxy credentials with realm [%.*s]\n", srealm->len, srealm->s);
+		LM_DBG("found www credentials with realm [%.*s]\n", srealm->len, srealm->s);
 		return 1;
 	}
 




More information about the sr-dev mailing list