diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_str.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 31dc9bfd62..142f0af4c8 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -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 */ |