* nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
This commit is contained in:
Ulrich Drepper 1998-09-29 12:12:36 +00:00
parent 87052ab727
commit cf26217d2c
2 changed files with 5 additions and 1 deletions

View File

@ -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>

View 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;