(kadm5_s_init_with_password_ctx): initialize log_context.socket_name' and
log_context.socket_fd'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4340 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -69,6 +69,17 @@ kadm5_s_init_with_password_ctx(krb5_context context,
|
||||
|
||||
ctx->log_context.log_fd = -1;
|
||||
|
||||
{
|
||||
struct sockaddr_un *un = &ctx->log_context.socket_name;
|
||||
|
||||
memset(un, 0, sizeof(*un));
|
||||
un->sun_family = AF_UNIX;
|
||||
strncpy (un->sun_path, KADM5_LOG_SIGNAL, sizeof(un->sun_path));
|
||||
un->sun_path[sizeof(un->sun_path) - 1] = '\0';
|
||||
}
|
||||
|
||||
ctx->log_context.socket_fd = socket (AF_UNIX, SOCK_DGRAM, 0);
|
||||
|
||||
ret = krb5_parse_name(ctx->context, client_name, &ctx->caller);
|
||||
if(ret)
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user