kadm5: Fix warnings
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user