Check that the gssapi library is usable early on.
[nfs-utils.git] / utils / gssd / svcgssd.c
index 4e0806c..0db3762 100644 (file)
@@ -204,6 +204,11 @@ main(int argc, char *argv[])
                            "support setting debug level\n");
 #endif
 
+       if (gssd_check_mechs() != 0) {
+               printerr(0, "ERROR: Problem with gssapi library\n");
+               exit(1);
+       }
+
        if (!fg)
                mydaemon(0, 0);