[sr-dev] git:master:5c774d6e: ims_auth: warn if the header type is not set properly

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 15 10:42:41 CET 2022


Module: kamailio
Branch: master
Commit: 5c774d6eced2ad52cb341b9e36419aac6c0506cb
URL: https://github.com/kamailio/kamailio/commit/5c774d6eced2ad52cb341b9e36419aac6c0506cb

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-03-15T10:38:42+01:00

ims_auth: warn if the header type is not set properly

---

Modified: src/modules/ims_auth/utils.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5c774d6eced2ad52cb341b9e36419aac6c0506cb.diff
Patch: https://github.com/kamailio/kamailio/commit/5c774d6eced2ad52cb341b9e36419aac6c0506cb.patch

---

diff --git a/src/modules/ims_auth/utils.c b/src/modules/ims_auth/utils.c
index 94d02e3fe7..b745af0275 100644
--- a/src/modules/ims_auth/utils.c
+++ b/src/modules/ims_auth/utils.c
@@ -71,8 +71,9 @@ int ims_find_credentials(struct sip_msg* _m, str* _realm,
 		hdr_flags = HDR_PROXYAUTH_F;
 		break;
 	default:
+		LM_WARN("unexpected header type %d - using authorization\n", _hftype);
 		hook = &(_m->authorization);
-		hdr_flags = HDR_T2F(_hftype);
+		hdr_flags = HDR_AUTHORIZATION_F;
 		break;
 	}
 




More information about the sr-dev mailing list