[sr-dev] git:master:2a3186ee: 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:19:25 CEST 2019


Module: kamailio
Branch: master
Commit: 2a3186ee0f8a2989f8de154019fd0ad73b390d73
URL: https://github.com/kamailio/kamailio/commit/2a3186ee0f8a2989f8de154019fd0ad73b390d73

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

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

- GH #2108

---

Modified: src/modules/uac/auth_alg.c

---

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

---

diff --git a/src/modules/uac/auth_alg.c b/src/modules/uac/auth_alg.c
index 18e5601662..a140b07adf 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