From 0ff38a82632da0eed588e1d90d54c165068c52c9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 24 Jan 2008 15:52:45 +0100 Subject: Fix Coverity ID 465 (This used to be commit 8629a0e1c3da7c2d2b0c1d99224177c54bbae930) --- source3/nmbd/nmbd_synclists.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd_synclists.c b/source3/nmbd/nmbd_synclists.c index 147df68a69..5a2f5c46b4 100644 --- a/source3/nmbd/nmbd_synclists.c +++ b/source3/nmbd/nmbd_synclists.c @@ -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; } -- cgit