Module: kamailio Branch: 5.3 Commit: ad1905397bd5bb7cca8c32f0f782fd340f07c68b URL: https://github.com/kamailio/kamailio/commit/ad1905397bd5bb7cca8c32f0f782fd34...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/ad1905397bd5bb7cca8c32f0f782fd34... Patch: https://github.com/kamailio/kamailio/commit/ad1905397bd5bb7cca8c32f0f782fd34...
---
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 ) {