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
Loading
Loading
Loading
Loading
+1 −1
Changes for src/main-conf.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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);