From 999b2f6bd7c194dff96e323fffbbe59564bfc1ee Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 29 Sep 1998 22:42:30 +0000 Subject: Update. 1998-09-29 Thorsten Kukuk * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free. 1998-09-29 Cristian Gafton * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[]. * sysdeps/unix/sysv/linux/net/if_shaper.h: New file. * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h. * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers): Add net/if_shaper.h. * libio/libio.h [!__STDC__]: Define const only if not defined. --- nis/ypclnt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nis/ypclnt.c') diff --git a/nis/ypclnt.c b/nis/ypclnt.c index 945765c..826b759 100644 --- a/nis/ypclnt.c +++ b/nis/ypclnt.c @@ -690,6 +690,7 @@ yp_all (const char *indomain, const char *inmap, clnt = clnttcp_create (&clnt_sin, YPPROG, YPVERS, &clnt_sock, 0, 0); if (clnt == NULL) { + __yp_unbind (ydb); __set_errno (saved_errno); return YPERR_PMAP; } @@ -711,6 +712,7 @@ yp_all (const char *indomain, const char *inmap, else res = YPERR_SUCCESS; + __yp_unbind (ydb); clnt_destroy (clnt); if (status != YP_NOMORE) -- cgit v1.1