mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 07:29:01 +00:00
Remove a redundant condition (this branch is always res>0)
This commit is contained in:
@@ -321,7 +321,6 @@ void bounce_scan(Target *target, u16 *portarray, int numports,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
recvbuf[res] = '\0';
|
recvbuf[res] = '\0';
|
||||||
if (res > 0) {
|
|
||||||
if (o.debugging)
|
if (o.debugging)
|
||||||
log_write(LOG_STDOUT, "nxt line: %s", recvbuf);
|
log_write(LOG_STDOUT, "nxt line: %s", recvbuf);
|
||||||
if (recvbuf[0] == '4' && recvbuf[1] == '2' && recvbuf[2] == '6') {
|
if (recvbuf[0] == '4' && recvbuf[1] == '2' && recvbuf[2] == '6') {
|
||||||
@@ -331,7 +330,6 @@ void bounce_scan(Target *target, u16 *portarray, int numports,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (recvbuf[0] == '2') {
|
if (recvbuf[0] == '2') {
|
||||||
target->ports.setPortState(portarray[i], IPPROTO_TCP, PORT_OPEN);
|
target->ports.setPortState(portarray[i], IPPROTO_TCP, PORT_OPEN);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user