]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
release the gssrpc names and creds before exiting
authorMarc Horowitz <marc@mit.edu>
Tue, 6 Oct 1998 06:33:51 +0000 (06:33 +0000)
committerMarc Horowitz <marc@mit.edu>
Tue, 6 Oct 1998 06:33:51 +0000 (06:33 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10958 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/server/ovsec_kadmd.c

index b1290e596c211bc6ff5979ee1c7555c15bf2ceee..fed4104b851ac28067be535d734cebb7eaf8c4f6 100644 (file)
@@ -397,6 +397,7 @@ int main(int argc, char *argv[])
                           "failing.");
          fprintf(stderr, "%s: Cannot set GSS-API authentication names.\n",
                  whoami);
+         _svcauth_gssapi_unset_names();
          kadm5_destroy(global_server_handle);
          krb5_klog_close();      
          exit(1);
@@ -423,6 +424,7 @@ int main(int argc, char *argv[])
                 error_message(ret));
          fprintf(stderr, "%s: Cannot initialize acl file: %s\n",
                  whoami, error_message(ret));
+         _svcauth_gssapi_unset_names();
          kadm5_destroy(global_server_handle);
          krb5_klog_close();
          exit(1);
@@ -433,6 +435,7 @@ int main(int argc, char *argv[])
          krb5_klog_syslog(LOG_ERR, "Cannot detach from tty: %s", error_message(ret));
          fprintf(stderr, "%s: Cannot detach from tty: %s\n",
                  whoami, error_message(ret));
+         _svcauth_gssapi_unset_names();
          kadm5_destroy(global_server_handle);
          krb5_klog_close();
          exit(1);
@@ -453,6 +456,7 @@ int main(int argc, char *argv[])
      krb5_klog_syslog(LOG_INFO, "finished, exiting");
 
      /* Clean up memory, etc */
+     _svcauth_gssapi_unset_names();
      kadm5_destroy(global_server_handle);
      close(s);
      acl_finish(context, 0);
@@ -900,6 +904,7 @@ void do_schpw(int s1, kadm5_config_params *params)
                         error_message(errno));
        fprintf(stderr, "Cannot create connecting socket: %s",
                error_message(errno));
+       _svcauth_gssapi_unset_names();
        kadm5_destroy(global_server_handle);
        krb5_klog_close();        
        exit(1);