From 18d3c23e36f5d97deed3c26e90f6573a83640436 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 24 Aug 2001 01:49:23 +0000 Subject: get rid of old debug code and possible socket leak (This used to be commit f942397d6515402be0c7c1085fc2e6d48eb6928f) --- source3/lib/util_sock.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source3/lib/util_sock.c') 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)); -- cgit