if (rc)
goto out_cli_upcall;
- rc = init_kerberos_module();
- if (rc)
- goto out_svc_upcall;
+ rc = init_null_module();
+ if (rc)
+ goto out_svc_upcall;
+
+ rc = init_kerberos_module();
+ if (rc)
+ goto out_null;
/* register policy after all other stuff be intialized, because it
* might be in used immediately after the registration. */
gss_exit_keyring();
out_kerberos:
cleanup_kerberos_module();
+out_null:
+ cleanup_null_module();
out_svc_upcall:
gss_exit_svc_upcall();
out_cli_upcall: