krb5 commit: Adjust kdb5.c check for ulog being mapped

Greg Hudson ghudson at MIT.EDU
Thu Jan 24 13:14:50 EST 2013


https://github.com/krb5/krb5/commit/240a9d5321420949be8f907f9c7389d7957d4624
commit 240a9d5321420949be8f907f9c7389d7957d4624
Author: Greg Hudson <ghudson at mit.edu>
Date:   Thu Jan 24 13:13:36 2013 -0500

    Adjust kdb5.c check for ulog being mapped
    
    Check the ulog pointer, which is a little more direct, rather than the
    ulogfd field.  (ulogfd is currently initialized to 0 prior to
    ulog_map; we could fix that instead, but this feels simpler.)

 src/lib/kdb/kdb5.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/kdb/kdb5.c b/src/lib/kdb/kdb5.c
index 0f56595..2a040fc 100644
--- a/src/lib/kdb/kdb5.c
+++ b/src/lib/kdb/kdb5.c
@@ -112,7 +112,7 @@ logging(krb5_context context)
     kdb_log_context *log_ctx = context->kdblog_context;
 
     return log_ctx != NULL && log_ctx->iproprole == IPROP_MASTER &&
-        log_ctx->ulogfd >= 0;
+        log_ctx->ulog != NULL;
 }
 
 /*


More information about the cvs-krb5 mailing list