Check that the gssapi library is usable early on.
[nfs-utils.git] / utils / gssd / gssd.c
index 8e9c72a..d6ddaae 100644 (file)
@@ -145,6 +145,9 @@ main(int argc, char *argv[])
                            "support setting debug level\n");
 #endif
 
+       if (gssd_check_mechs() != 0)
+               errx(1, "Problem with gssapi library");
+
        if (!fg && daemon(0, 0) < 0)
                errx(1, "fork");