summaryrefslogtreecommitdiffstats
path: root/Modules/nismodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/nismodule.c')
-rw-r--r--Modules/nismodule.c7
1 files 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);