Skip to content
Snippets Groups Projects
Commit fd228ab4 authored by Robert David Graham's avatar Robert David Graham Committed by GitHub
Browse files

Merge pull request #211 from crackcomm/patch-1

Fix redis address parsing
parents 856ed625 874337af
No related branches found
No related tags found
No related merge requests found
......@@ -1486,7 +1486,7 @@ masscan_set_parameter(struct Masscan *masscan,
if (offset < max_offset) {
while (offset < max_offset && isspace(value[offset]))
offset++;
if (offset+1 < max_offset && value[offset] == ';' && isdigit(value[offset+1]&0xFF)) {
if (offset+1 < max_offset && value[offset] == ':' && isdigit(value[offset+1]&0xFF)) {
port = strtoul(value+offset+1, 0, 0);
if (port > 65535 || port == 0) {
LOG(0, "FAIL: bad redis port: %s\n", value+offset+1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment