1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Fix Coverity ID 454

(This used to be commit 902d1d6709)
This commit is contained in:
Volker Lendecke 2008-01-24 16:12:42 +01:00
parent ba6c78c355
commit 1eb484d4b4

View File

@ -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;
}