Module: kamailio
Branch: master
Commit: 436ef74f2e12a17f7187031d5ea40b2fb3bbb107
URL:
https://github.com/kamailio/kamailio/commit/436ef74f2e12a17f7187031d5ea40b2…
Author: Alexandru Covalschi <568691(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-25T15:14:37+02:00
uac: fix uac_reg_check_password having '9' disabled in hash string (GH #2072)
---
Modified: src/modules/uac/uac_reg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/436ef74f2e12a17f7187031d5ea40b2…
Patch:
https://github.com/kamailio/kamailio/commit/436ef74f2e12a17f7187031d5ea40b2…
---
diff --git a/src/modules/uac/uac_reg.c b/src/modules/uac/uac_reg.c
index 82704be12c..5ede2458ef 100644
--- a/src/modules/uac/uac_reg.c
+++ b/src/modules/uac/uac_reg.c
@@ -1238,7 +1238,7 @@ static int uac_reg_check_password(reg_uac_t *reg)
return -1;
}
for(i=0; i<reg->auth_ha1.len; i++) {
- if(!((reg->auth_ha1.s[i]>='0' &&
reg->auth_ha1.s[i]<'9')
+ if(!((reg->auth_ha1.s[i]>='0' &&
reg->auth_ha1.s[i]<='9')
|| (reg->auth_ha1.s[i]>='a' &&
reg->auth_ha1.s[i]<='f')
|| (reg->auth_ha1.s[i]>='A' &&
reg->auth_ha1.s[i]<='F'))) {
LM_ERR("invalid char %d in HA1 string: %.*s\n", i,