From 134417ea9732c983f16bfc2520832ae32bb28d64 Mon Sep 17 00:00:00 2001 From: henri Date: Thu, 26 Apr 2012 20:53:50 +0000 Subject: [PATCH] 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? :) --- nmap_rpc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmap_rpc.cc b/nmap_rpc.cc index 6b0fd6a80..7e74f80c2 100644 --- a/nmap_rpc.cc +++ b/nmap_rpc.cc @@ -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 {