From 2acd8fcfc4b8c76f34a304087c7a539102eddb6b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 18 May 1999 13:04:17 +0000 Subject: Update. 1999-05-18 Thorsten Kukuk * nis/nis_lookup.c (nis_lookup): If we run out of memory, close RPC connection. --- nis/nis_lookup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nis') diff --git a/nis/nis_lookup.c b/nis/nis_lookup.c index cdc5b3f1f9..646b15df49 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; -- cgit v1.2.3