[sr-dev] git:master:67e0fa5e: core: parser digest - 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: 67e0fa5e53ef5d4dd9802e3027b2bc7ff6dcb671
URL: https://github.com/kamailio/kamailio/commit/67e0fa5e53ef5d4dd9802e3027b2bc7ff6dcb671

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

core: parser digest - warn if the header type is not set properly

---

Modified: src/core/parser/digest/digest.c

---

Diff:  https://github.com/kamailio/kamailio/commit/67e0fa5e53ef5d4dd9802e3027b2bc7ff6dcb671.diff
Patch: https://github.com/kamailio/kamailio/commit/67e0fa5e53ef5d4dd9802e3027b2bc7ff6dcb671.patch

---

diff --git a/src/core/parser/digest/digest.c b/src/core/parser/digest/digest.c
index ccc62a6551..83cce621f0 100644
--- a/src/core/parser/digest/digest.c
+++ b/src/core/parser/digest/digest.c
@@ -259,8 +259,9 @@ int find_credentials(struct sip_msg* msg, str* realm,
 		hdr_flags=HDR_PROXYAUTH_F;
 		break;
 	default:
+		LM_WARN("unexpected header type %d - using authorization\n", hftype);
 		hook = &(msg->authorization);
-		hdr_flags=HDR_T2F(hftype);
+		hdr_flags=HDR_AUTHORIZATION_F;
 		break;
 	}
 




More information about the sr-dev mailing list