2005-12-08 Jakub Jelinek <jakub@redhat.com>
+ * nis/nis_call.c (__nisbind_create): Remove __nisbind_destroy,
+ ->clnt cannot be != NULL.
+ (__do_niscall): No need to use __nisbind_destroy, __nisbind_next
+ did it.
+ (__nisbind_connect): use_auth is already TRUE, otherwise we would
+ not be here.
+
+ * nis/nis_lookup.c (nis_lookup): Remove unnecessary
+ __nisbind_destroy calls. __nisbind_next does all that.
+
* nis/ypclnt.c (yp_update): Before trying default authentication,
free DES descriptor.
-/* Copyright (C) 1997, 1998, 2001, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2001, 2004, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
}
else
dbp->clnt->cl_auth = authunix_create_default ();
- dbp->use_auth = TRUE;
}
return NIS_SUCCESS;
dbp->class = -1;
if (__nis_findfastest (dbp) < 1)
- {
- __nisbind_destroy (dbp);
- return NIS_NAMEUNREACHABLE;
- }
+ return NIS_NAMEUNREACHABLE;
return NIS_SUCCESS;
}
if (__nisbind_next (&bptr) != NIS_SUCCESS)
{
nis_free_directory (dir);
- __nisbind_destroy (&bptr);
return NIS_NAMEUNREACHABLE;
}
}
{
if (__nisbind_next (&bptr) != NIS_SUCCESS)
{
- __nisbind_destroy (&bptr);
nis_free_directory (dir);
NIS_RES_STATUS (res) = NIS_NAMEUNREACHABLE;
return res;
{
if (__nisbind_next (&bptr) != NIS_SUCCESS)
{
- __nisbind_destroy (&bptr);
nis_free_directory (dir);
return res;
}