From: Ulrich Drepper Date: Wed, 30 Sep 1998 13:58:48 +0000 (+0000) Subject: (yp_all): Close UDP socket und give CLIENT handle free. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c97fef5d0befc023ebc8061638fa1375561cff6a;p=thirdparty%2Fglibc.git (yp_all): Close UDP socket und give CLIENT handle free. --- diff --git a/nis/ypclnt.c b/nis/ypclnt.c index 98f15062412..d260745a605 100644 --- a/nis/ypclnt.c +++ b/nis/ypclnt.c @@ -688,7 +688,10 @@ yp_all (const char *indomain, const char *inmap, clnt_sin.sin_port = 0; clnt = clnttcp_create (&clnt_sin, YPPROG, YPVERS, &clnt_sock, 0, 0); if (clnt == NULL) - return YPERR_PMAP; + { + __yp_unbind (ydb); + return YPERR_PMAP; + } req.domain = (char *) indomain; req.map = (char *) inmap; @@ -707,6 +710,7 @@ yp_all (const char *indomain, const char *inmap, else res = YPERR_SUCCESS; + __yp_unbind (ydb); clnt_destroy (clnt); close (clnt_sock);