diff options
author | Volker Lendecke <vl@samba.org> | 2008-01-24 15:52:45 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-01-24 16:31:55 +0100 |
commit | 0ff38a82632da0eed588e1d90d54c165068c52c9 (patch) | |
tree | 377b8ee03093a142d2202278ce19d00cf9f83912 /source3/nmbd | |
parent | fcf42bb19c66fdf87a27354f0cd31b5aacd527d5 (diff) | |
download | samba-0ff38a82632da0eed588e1d90d54c165068c52c9.tar.gz samba-0ff38a82632da0eed588e1d90d54c165068c52c9.tar.bz2 samba-0ff38a82632da0eed588e1d90d54c165068c52c9.zip |
Fix Coverity ID 465
(This used to be commit 8629a0e1c3da7c2d2b0c1d99224177c54bbae930)
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd_synclists.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |