From 8c058eec1e5ea88c64056fe2edef6a11b174756c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 8 Dec 2005 20:32:12 +0000 Subject: * 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/nis_call.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'nis/nis_call.c') diff --git a/nis/nis_call.c b/nis/nis_call.c index 14041a160c..07f95f041c 100644 --- a/nis/nis_call.c +++ b/nis/nis_call.c @@ -1,4 +1,4 @@ -/* 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 , 1997. @@ -179,7 +179,6 @@ __nisbind_connect (dir_binding *dbp) } else dbp->clnt->cl_auth = authunix_create_default (); - dbp->use_auth = TRUE; } return NIS_SUCCESS; @@ -215,10 +214,7 @@ __nisbind_create (dir_binding *dbp, const nis_server *serv_val, dbp->class = -1; if (__nis_findfastest (dbp) < 1) - { - __nisbind_destroy (dbp); - return NIS_NAMEUNREACHABLE; - } + return NIS_NAMEUNREACHABLE; return NIS_SUCCESS; } @@ -585,7 +581,6 @@ __do_niscall (const_nis_name name, u_long prog, xdrproc_t xargs, if (__nisbind_next (&bptr) != NIS_SUCCESS) { nis_free_directory (dir); - __nisbind_destroy (&bptr); return NIS_NAMEUNREACHABLE; } } -- cgit v1.2.3