diff options
author | Herb Lewis <herb@samba.org> | 2001-08-24 01:49:23 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2001-08-24 01:49:23 +0000 |
commit | 18d3c23e36f5d97deed3c26e90f6573a83640436 (patch) | |
tree | 482aafc59053c8633f45046cb668597ca871499f | |
parent | 964bfb219353369ba244cb7fb2177f03cce4d56c (diff) | |
download | samba-18d3c23e36f5d97deed3c26e90f6573a83640436.tar.gz samba-18d3c23e36f5d97deed3c26e90f6573a83640436.tar.bz2 samba-18d3c23e36f5d97deed3c26e90f6573a83640436.zip |
get rid of old debug code and possible socket leak
(This used to be commit f942397d6515402be0c7c1085fc2e6d48eb6928f)
-rw-r--r-- | source3/lib/util_sock.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index d7a2a2e7b9..8f2eceabbc 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -814,20 +814,12 @@ int open_socket_in(int type, int port, int dlevel,uint32 socket_addr, BOOL rebin /* now we've got a socket - we need to bind it */ if (bind(res, (struct sockaddr * ) &sock,sizeof(sock)) < 0) { - if (port) { if (port == SMB_PORT || port == NMB_PORT) DEBUG(dlevel,("bind failed on port %d socket_addr=%s (%s)\n", port,inet_ntoa(sock.sin_addr),strerror(errno))); close(res); - if (dlevel > 0 && port < 1000) - port = 7999; - - if (port >= 1000 && port < 9000) - return(open_socket_in(type,port+1,dlevel,socket_addr,rebind)); - } - - return(-1); + return(-1); } DEBUG(3,("bind succeeded on port %d\n",port)); |