]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Adjust kdb5.c check for ulog being mapped
authorGreg Hudson <ghudson@mit.edu>
Thu, 24 Jan 2013 18:13:36 +0000 (13:13 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 24 Jan 2013 18:13:36 +0000 (13:13 -0500)
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

index 0f56595d2f4026c82ea1465ad3f4f14c06c49661..2a040fc57c809241e35bc47798f298e6b27bc34e 100644 (file)
@@ -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;
 }
 
 /*