[sr-dev] git:master:267d4ad4: auth: coherent log message content with header parsing

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 4 10:05:19 CEST 2022


Module: kamailio
Branch: master
Commit: 267d4ad48ac8426b3d5c53724281605a74d07999
URL: https://github.com/kamailio/kamailio/commit/267d4ad48ac8426b3d5c53724281605a74d07999

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

auth: coherent log message content with header parsing

---

Modified: src/modules/auth/auth_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/267d4ad48ac8426b3d5c53724281605a74d07999.diff
Patch: https://github.com/kamailio/kamailio/commit/267d4ad48ac8426b3d5c53724281605a74d07999.patch

---

diff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c
index 6f7639619a..3a05689f00 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