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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user