aboutsummaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
Diffstat (limited to 'nis')
-rw-r--r--nis/nis_lookup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nis/nis_lookup.c b/nis/nis_lookup.c
index cdc5b3f..646b15d 100644
--- a/nis/nis_lookup.c
+++ b/nis/nis_lookup.c
@@ -127,7 +127,10 @@ nis_lookup (const_nis_name name, const unsigned int flags)
nis_freeresult (res);
res = calloc (1, sizeof (nis_result));
if (res == NULL)
- return NULL;
+ {
+ __nisbind_destroy (&bptr);
+ return NULL;
+ }
link_first_try = 1; /* Try at first the old binding */
goto again;