Fix Coverity ID 465
authorVolker Lendecke <vl@samba.org>
Thu, 24 Jan 2008 14:52:45 +0000 (15:52 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 24 Jan 2008 15:31:55 +0000 (16:31 +0100)
source/nmbd/nmbd_synclists.c

index 147df68a69d9787ebf039ed68ed80c5d4278c546..5a2f5c46b4b296b640f45ed2351f2a26f9495c26 100644 (file)
@@ -81,12 +81,14 @@ static void sync_child(char *name, int nm_type,
        }
 
        if (!cli_set_port(cli, 139)) {
+               cli_shutdown(cli);
                return;
        }
 
        in_addr_to_sockaddr_storage(&ss, ip);
        status = cli_connect(cli, name, &ss);
        if (!NT_STATUS_IS_OK(status)) {
+               cli_shutdown(cli);
                return;
        }