diff options
author | Volker Lendecke <vl@samba.org> | 2013-08-18 20:41:51 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-08-19 03:10:51 +0200 |
commit | 02618cc58a49864bd0bf280d9f13a7f39fcf9658 (patch) | |
tree | a0161c969288d7a58800f23c62c88f23d5c551e9 /source3/rpc_server | |
parent | 980c757388b9cd3a376cf45fc98b01c65124c6a5 (diff) | |
download | samba-02618cc58a49864bd0bf280d9f13a7f39fcf9658.tar.gz samba-02618cc58a49864bd0bf280d9f13a7f39fcf9658.tar.bz2 samba-02618cc58a49864bd0bf280d9f13a7f39fcf9658.zip |
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
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/rpc_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index de54ddc6e2..fa3c8709fa 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -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; } |