Staticize `kadm5_config_params conf' passed to

`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
This commit is contained in:
Jacques A. Vidrine
2001-10-29 12:53:52 +00:00
parent eec0349c2d
commit 2d609b163b

View 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));