Index: common-src/stream.c
===================================================================
RCS file: /cvsroot/amanda/amanda/common-src/stream.c,v
retrieving revision 1.10.2.8
diff -u -r1.10.2.8 stream.c
--- common-src/stream.c	2001/06/18 22:23:19	1.10.2.8
+++ common-src/stream.c	2001/07/02 22:23:32
@@ -203,18 +203,16 @@
     claddr.sin_addr.s_addr = INADDR_ANY;
 
     /*
-     * If a port range was specified, we try to get a port in that
-     * range first.  Next, we try to get a reserved port.  If that
-     * fails, we just go for any port.
+     * First, we try to get a reserved port.  If that fails, we just go
+     * for any port.
      *
      * It is up to the caller to make sure we have the proper permissions
      * to get the desired port, and to make sure we return a port that
      * is within the range it requires.
+     *
+     * We do not bother with any user defined portrange (--with-portrange)
+     * here because it does not matter from the client side.
      */
-#ifdef PORTRANGE
-    if (bind_portrange(client_socket, &claddr, PORTRANGE) == 0)
-	goto out;
-#endif
 
     if (bind_portrange(client_socket, &claddr, 512, IPPORT_RESERVED - 1) == 0)
 	goto out;
