From 1abda0fb1210946b76c8871fc64a19b9568c232f Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 11 Dec 1996 01:00:46 +0000 Subject: cat and puste errors --- Modules/nismodule.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Modules/nismodule.c b/Modules/nismodule.c index c74957a..a00a0e6 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -294,9 +294,12 @@ nis_maplist () CLIENT *cl, *clnt_create(); char *server = ""; int mapi = 0; + int err; - if ((err = yp_get_default_domain (&dom)) != 0) - return nis_error(err); + if ((err = yp_get_default_domain (&dom)) != 0) { + nis_error(err); + return NULL; + } while (!strcmp("", server) && aliases[mapi].map != 0L) { yp_master (dom, aliases[mapi].map, &server); -- cgit v0.12