(yp_all): Close socket opened by __yp_bind.
authordrepper <drepper>
Tue, 29 Sep 1998 12:12:25 +0000 (12:12 +0000)
committerdrepper <drepper>
Tue, 29 Sep 1998 12:12:25 +0000 (12:12 +0000)
nis/ypclnt.c

index dff92d7..945765c 100644 (file)
@@ -681,7 +681,9 @@ yp_all (const char *indomain, const char *inmap,
          return YPERR_DOMAIN;
        }
 
-      /* YPPROC_ALL get its own TCP channel to ypserv */
+      /* YPPROC_ALL get its own TCP channel to ypserv.  Therefore we
+        close the socket opened by the __yp_bind call.  */
+      close (ydb->dom_socket);
       clnt_sock = RPC_ANYSOCK;
       clnt_sin = ydb->dom_server_addr;
       clnt_sin.sin_port = 0;