Skip to content

Commit

Permalink
Only do update log locking if actually using iprop.
Browse files Browse the repository at this point in the history
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/sun-iprop@20462 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
raeburn committed Jun 23, 2008
1 parent f62d851 commit 1fe52ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/kdb/kdb_log.c
Expand Up @@ -46,8 +46,8 @@ ulog_lock(krb5_context ctx, int mode)

if (ctx == NULL)
return KRB5_LOG_ERROR;
if (ctx->kdblog_context == NULL)
return KRB5_LOG_ERROR;
if (ctx->kdblog_context == NULL || ctx->kdblog_context->iproprole == IPROP_NULL)
return 0;
INIT_ULOG(ctx);
return krb5_lock_file(ctx, log_ctx->ulogfd, mode);
}
Expand Down

0 comments on commit 1fe52ef

Please sign in to comment.