mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
rpc_server: Fix CID 1063255 Resource leak
We would leak a socket 0 here Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Aug 19 03:10:51 CEST 2013 on sn-devel-104
This commit is contained in:
parent
980c757388
commit
02618cc58a
@ -620,7 +620,7 @@ int create_tcpip_socket(const struct sockaddr_storage *ifss, uint16_t *port)
|
||||
0,
|
||||
ifss,
|
||||
false);
|
||||
if (fd > 0) {
|
||||
if (fd >= 0) {
|
||||
*port = i;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user