Staticize `kadm5_config_params conf' passed to
authorJacques A. Vidrine <n@nectar.com>
Mon, 29 Oct 2001 12:53:52 +0000 (12:53 +0000)
committerJacques A. Vidrine <n@nectar.com>
Mon, 29 Oct 2001 12:53:52 +0000 (12:53 +0000)
`kadm5_init_with_password_ctx', since the latter holds a reference
to it.  Previously it was on the stack and would become overwritten
when doing `ktutil get'.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10779 ec53bebd-3082-4978-b11e-865c3cabbd6b

admin/get.c

index f5b85e9f357b79f0df945b84988b3fff536249d1..2bfcad62f4e523f6ccbd79dd5e15963e1a55e5d4 100644 (file)
@@ -41,8 +41,8 @@ open_kadmin_connection(char *principal,
                       char *admin_server, 
                       int server_port)
 {
+    static kadm5_config_params conf;
     krb5_error_code ret;
-    kadm5_config_params conf;
     void *kadm_handle;
     memset(&conf, 0, sizeof(conf));