mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
Fix Coverity ID 454
(This used to be commit 902d1d6709e47fbc8b538f28cb4364b006c431f8)
This commit is contained in:
parent
ba6c78c355
commit
1eb484d4b4
@ -676,11 +676,18 @@ static bool open_sockets(bool isdaemon, int port)
|
||||
ClientNMB = 0;
|
||||
}
|
||||
|
||||
if (ClientNMB == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ClientDGRAM = open_socket_in(SOCK_DGRAM, DGRAM_PORT,
|
||||
3, &ss,
|
||||
true);
|
||||
|
||||
if (ClientNMB == -1) {
|
||||
if (ClientDGRAM == -1) {
|
||||
if (ClientNMB != 0) {
|
||||
close(ClientNMB);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user