diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-12-08 20:32:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-12-08 20:32:12 +0000 |
commit | 8c058eec1e5ea88c64056fe2edef6a11b174756c (patch) | |
tree | c3d18cf9c0e670c0d5bc1c2a97ad9915424c7692 /nis/nis_lookup.c | |
parent | e975f14ee90a2ddb80afd9517670d61a80c00a02 (diff) | |
download | glibc-8c058eec1e5ea88c64056fe2edef6a11b174756c.tar.gz |
* 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.
Diffstat (limited to 'nis/nis_lookup.c')
-rw-r--r-- | nis/nis_lookup.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/nis/nis_lookup.c b/nis/nis_lookup.c index 5f2fb59d79..4cb34dd1a8 100644 --- a/nis/nis_lookup.c +++ b/nis/nis_lookup.c @@ -81,7 +81,6 @@ nis_lookup (const_nis_name name, const unsigned int flags) { if (__nisbind_next (&bptr) != NIS_SUCCESS) { - __nisbind_destroy (&bptr); nis_free_directory (dir); NIS_RES_STATUS (res) = NIS_NAMEUNREACHABLE; return res; @@ -167,7 +166,6 @@ nis_lookup (const_nis_name name, const unsigned int flags) { if (__nisbind_next (&bptr) != NIS_SUCCESS) { - __nisbind_destroy (&bptr); nis_free_directory (dir); return res; } |