diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-29 12:12:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-29 12:12:36 +0000 |
commit | cf26217d2cabf23e09233f2ba9dbfd4138942868 (patch) | |
tree | db4cb641be04ce1e624a713610181777d9dc44f1 | |
parent | 87052ab7278a7848b758103a0f91b55830903497 (diff) | |
download | glibc-cf26217d2cabf23e09233f2ba9dbfd4138942868.tar.gz glibc-cf26217d2cabf23e09233f2ba9dbfd4138942868.tar.xz glibc-cf26217d2cabf23e09233f2ba9dbfd4138942868.zip |
Update.
* nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | nis/ypclnt.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 63ab4e7c10..8cbd7817cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1998-09-29 Ulrich Drepper <drepper@cygnus.com> + * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind. + * nis/ypclnt.c: Remove not needed close calls. 1998-09-28 23:55 Ulrich Drepper <drepper@cygnus.com> 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; |