]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(yp_all): Close UDP socket und give CLIENT handle free.
authorUlrich Drepper <drepper@redhat.com>
Wed, 30 Sep 1998 13:58:48 +0000 (13:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 30 Sep 1998 13:58:48 +0000 (13:58 +0000)
nis/ypclnt.c

index 98f1506241211c7dc51262514fbac85c22f361a1..d260745a605a14b99d30a804fa17cd216038c71e 100644 (file)
@@ -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);