diff options
author | Herb Lewis <herb@samba.org> | 2001-08-24 01:47:34 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2001-08-24 01:47:34 +0000 |
commit | df70ad75d6af08e271c664d46ecb7213e7e425f7 (patch) | |
tree | f57074b1b2bbe977803223fcc4fae7dbb43e4008 | |
parent | b77a75545d1ef72f897f41819d650b5568989abd (diff) | |
download | samba-df70ad75d6af08e271c664d46ecb7213e7e425f7.tar.gz samba-df70ad75d6af08e271c664d46ecb7213e7e425f7.tar.xz samba-df70ad75d6af08e271c664d46ecb7213e7e425f7.zip |
get rid of old debug code and a possible socket leak
-rw-r--r-- | source/lib/util_sock.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index 24290e9af44..3d8afd71976 100644 --- a/source/lib/util_sock.c +++ b/source/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)); |