(kadm5_c_init_with_context): don't use unitialized stuff
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7569 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -300,12 +300,12 @@ kadm5_c_init_with_context(krb5_context context,
|
|||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
hints.ai_protocol = IPPROTO_TCP;
|
hints.ai_protocol = IPPROTO_TCP;
|
||||||
|
|
||||||
snprintf (portstr, sizeof(portstr), "%u", ctx->kadmind_port);
|
|
||||||
|
|
||||||
ret = _kadm5_c_init_context(&ctx, realm_params, context);
|
ret = _kadm5_c_init_context(&ctx, realm_params, context);
|
||||||
if(ret)
|
if(ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
snprintf (portstr, sizeof(portstr), "%u", ctx->kadmind_port);
|
||||||
|
|
||||||
error = getaddrinfo (ctx->admin_server, portstr,
|
error = getaddrinfo (ctx->admin_server, portstr,
|
||||||
&hints, &ai);
|
&hints, &ai);
|
||||||
if (error)
|
if (error)
|
||||||
|
Reference in New Issue
Block a user