Browse code

uac: fix uac_reg_check_password having '9' disabled in hash string (GH #2072)

Alexandru Covalschi authored on 25/09/2019 13:13:56 • Henning Westerholt committed on 25/09/2019 13:14:37
Showing 1 changed files
... ...
@@ -1238,7 +1238,7 @@ static int uac_reg_check_password(reg_uac_t *reg)
1238 1238
 		return -1;
1239 1239
 	}
1240 1240
 	for(i=0; i<reg->auth_ha1.len; i++) {
1241
-		if(!((reg->auth_ha1.s[i]>='0' && reg->auth_ha1.s[i]<'9')
1241
+		if(!((reg->auth_ha1.s[i]>='0' && reg->auth_ha1.s[i]<='9')
1242 1242
 				|| (reg->auth_ha1.s[i]>='a' && reg->auth_ha1.s[i]<='f')
1243 1243
 				|| (reg->auth_ha1.s[i]>='A' && reg->auth_ha1.s[i]<='F'))) {
1244 1244
 			LM_ERR("invalid char %d in HA1 string: %.*s\n", i,