Whamcloud - gitweb
LU-3289 gss: gssnull security flavor
[fs/lustre-release.git] / lustre / ptlrpc / gss / sec_gss.c
index 043a683..377e367 100644 (file)
@@ -2863,9 +2863,13 @@ int __init sptlrpc_gss_init(void)
         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. */
@@ -2886,6 +2890,8 @@ out_keyring:
         gss_exit_keyring();
 out_kerberos:
         cleanup_kerberos_module();
+out_null:
+       cleanup_null_module();
 out_svc_upcall:
         gss_exit_svc_upcall();
 out_cli_upcall: