]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 29 Sep 1998 12:12:36 +0000 (12:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 29 Sep 1998 12:12:36 +0000 (12:12 +0000)
* nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.

ChangeLog
nis/ypclnt.c

index 63ab4e7c10d8f5b02f09f2ccf1d1526ab368ad70..8cbd7817cf2cd45d392a4e42a21d3894938567e5 100644 (file)
--- 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>
index dff92d75eb5e3134e719b3413a20bd2198057539..945765c6e9a823974ca3c991a7b83ff8caa252b4 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;