1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 11:29:01 +00:00

Moved two cleanup statements out of an 'if (debug) {}' block. The TCP version

below seems correct, or at least different (am I fixing the wrong one? :)
This commit is contained in:
henri
2012-04-26 20:53:50 +00:00
parent 3e1248e0f4
commit 134417ea97

View File

@@ -332,9 +332,9 @@ int send_rpc_query(Target *target_host, unsigned short portno,
if (res == -1) {
if (o.debugging) {
gh_perror("Sendto in %s", __func__);
close(udp_rpc_socket);
udp_rpc_socket = -1;
}
close(udp_rpc_socket);
udp_rpc_socket = -1;
return -1;
}
} else {