Module: kamailio
Branch: master
Commit: 2a3186ee0f8a2989f8de154019fd0ad73b390d73
URL:
https://github.com/kamailio/kamailio/commit/2a3186ee0f8a2989f8de154019fd0ad…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/2a3186ee0f8a2989f8de154019fd0ad…
Patch:
https://github.com/kamailio/kamailio/commit/2a3186ee0f8a2989f8de154019fd0ad…
---
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 ) {