[sr-dev] git:master:436ef74f: uac: fix uac_reg_check_password having '9' disabled in hash string (GH #2072)

Henning Westerholt hw at skalatan.de
Wed Sep 25 15:15:09 CEST 2019


Module: kamailio
Branch: master
Commit: 436ef74f2e12a17f7187031d5ea40b2fb3bbb107
URL: https://github.com/kamailio/kamailio/commit/436ef74f2e12a17f7187031d5ea40b2fb3bbb107

Author: Alexandru Covalschi <568691 at gmail.com>
Committer: Henning Westerholt <hw at 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/436ef74f2e12a17f7187031d5ea40b2fb3bbb107.diff
Patch: https://github.com/kamailio/kamailio/commit/436ef74f2e12a17f7187031d5ea40b2fb3bbb107.patch

---

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,




More information about the sr-dev mailing list