kadm5: Fix warnings

This commit is contained in:
Nicolas Williams
2021-03-28 17:52:15 -05:00
parent 6be334bfee
commit 69eee19541
4 changed files with 20 additions and 24 deletions

View File

@@ -509,9 +509,9 @@ kadm_connect(kadm5_client_context *ctx)
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
snprintf(portstr, sizeof(portstr), "%u", ntohs(ctx->kadmind_port));
snprintf(portstr, sizeof(portstr), "%u", ntohs(kadmin_port));
hostname = ctx->admin_server;
hostname = admin_server;
slash = strchr(hostname, '/');
if (slash != NULL)
hostname = slash + 1;
@@ -640,7 +640,7 @@ kadm5_c_init_with_context(krb5_context context,
void **server_handle)
{
kadm5_ret_t ret;
kadm5_client_context *ctx;
kadm5_client_context *ctx = NULL;
krb5_ccache cc;
ret = _kadm5_c_init_context(&ctx, realm_params, context);