util: fix trailing char check with ByteExtractString

pull/5207/head
Shivani Bhardwaj 6 years ago committed by Victor Julien
parent eb5b927787
commit 6f84515dd9

@ -223,7 +223,7 @@ int ByteExtractString(uint64_t *res, int base, uint16_t len, const char *str, bo
SCLogDebug("invalid numeric value");
return -1;
}
else if (strict && len && *endptr != '\0') {
else if (strict && *endptr != '\0') {
SCLogError(SC_ERR_INVALID_NUMERIC_VALUE, "Extra characters following numeric value");
return -1;
}

Loading…
Cancel
Save