diff options
-rw-r--r-- | source3/libsmb/smbsock_connect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/smbsock_connect.c b/source3/libsmb/smbsock_connect.c index df2dbade1d..88b4533bad 100644 --- a/source3/libsmb/smbsock_connect.c +++ b/source3/libsmb/smbsock_connect.c @@ -271,6 +271,7 @@ static int smbsock_connect_state_destructor( { if (state->sock != -1) { close(state->sock); + state->sock = -1; } return 0; } |