1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Same infinite loop bug as I fixed in SAMBA_2_0, but I just spent half

an hour tracking it down in HEAD so I'm going to commit it here as well.
This commit is contained in:
Matthew Chapman 0001-01-01 00:00:00 +00:00
parent 1143fd4297
commit 9a482aedb2

View File

@ -882,16 +882,16 @@ size_t strhex_to_str(char *p, size_t len, const char *strhex)
continue;
}
while (!(p1 = strchr(hexchars, toupper(strhex[i]))))
if (!(p1 = strchr(hexchars, toupper(strhex[i]))))
{
continue;
break;
}
i++; /* next hex digit */
while (!(p2 = strchr(hexchars, toupper(strhex[i]))))
if (!(p2 = strchr(hexchars, toupper(strhex[i]))))
{
continue;
break;
}
/* get the two nybbles */