From 32abdb710c9335481da780eab5ad790318d2fadf Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 16 May 1999 10:14:25 +0000 Subject: Update. 1999-05-16 Thorsten Kukuk * sunrpc/etc.rpc: Add portmapper, rstat_svc and pcnfs. * sunrpc/key_call.c: Fix memory leak, close file handle. * nis/nis_creategroup.c: Use malloc instead of calloc, set ctime and mtime. * nis/nis_subr.c: Check for realloc result. * nis/nis_file.c: Fix memory leak. * nis/nis_table.c: Pretty print. * nis/nis_getservlist.c: Likewise. * nis/nis_ismember.c: Likewise. * nis/nis_lookup.c: Likewise. * nis/nis_ping.c: Likewise. * nis/nis_removemember.c: Likewise. * nis/nis_util.c: Likewise, check calloc result. --- nis/nis_lookup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nis/nis_lookup.c') diff --git a/nis/nis_lookup.c b/nis/nis_lookup.c index 4eed61e..cdc5b3f 100644 --- a/nis/nis_lookup.c +++ b/nis/nis_lookup.c @@ -121,14 +121,14 @@ nis_lookup (const_nis_name name, const unsigned int flags) ++count_links; req.ns_name = strdup (NIS_RES_OBJECT (res)->LI_data.li_name); + if (req.ns_name == NULL) + return NULL; + nis_freeresult (res); res = calloc (1, sizeof (nis_result)); if (res == NULL) - { - __nisbind_destroy (&bptr); - nis_free_directory (dir); - return NULL; - } + return NULL; + link_first_try = 1; /* Try at first the old binding */ goto again; } -- cgit v1.1