[sr-dev] git:5.3:ad190539: uac: proper condition to chech if ha1 flag is set for uac reg authentication

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 22 15:20:42 CEST 2019


Module: kamailio
Branch: 5.3
Commit: ad1905397bd5bb7cca8c32f0f782fd340f07c68b
URL: https://github.com/kamailio/kamailio/commit/ad1905397bd5bb7cca8c32f0f782fd340f07c68b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-10-22T15:20:14+02:00

uac: proper condition to chech if ha1 flag is set for uac reg authentication

- GH #2108

(cherry picked from commit 2a3186ee0f8a2989f8de154019fd0ad73b390d73)

---

Modified: src/modules/uac/auth_alg.c

---

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

---

diff --git a/src/modules/uac/auth_alg.c b/src/modules/uac/auth_alg.c
index 07af9fc995..6b0b0d3bb3 100644
--- a/src/modules/uac/auth_alg.c
+++ b/src/modules/uac/auth_alg.c
@@ -96,7 +96,7 @@ void uac_calc_HA1( struct uac_credential *crd,
 	MD5_CTX Md5Ctx;
 	HASH HA1;
 
-	if(UAC_FLCRED_HA1 & UAC_FLCRED_HA1) {
+	if(crd->aflags & UAC_FLCRED_HA1) {
 		memcpy(sess_key, crd->passwd.s, HASHHEXLEN);
 		sess_key[HASHHEXLEN] = '\0';
 		if ( auth->flags& AUTHENTICATE_MD5SESS ) {




More information about the sr-dev mailing list