From cf26217d2cabf23e09233f2ba9dbfd4138942868 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 29 Sep 1998 12:12:36 +0000 Subject: Update. * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind. --- nis/ypclnt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nis/ypclnt.c') diff --git a/nis/ypclnt.c b/nis/ypclnt.c index dff92d75eb..945765c6e9 100644 --- a/nis/ypclnt.c +++ b/nis/ypclnt.c @@ -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; -- cgit 1.4.1