From 053b53c4ae2e30d3686fcafafb8128bafc9e95b3 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 1 Apr 2008 19:15:40 +0000 Subject: [PATCH] DEVEL15-aklog-debug-text-dont-deref-null-ptr-20080401 LICENSE IPL10 yeah, this is sort of dumb AUTHOR LICENSE IPL10 ==================== This delta was composed from multiple commits as part of the CVS->Git migration. The checkin message with each commit was inconsistent. The following are the additional commit messages. ==================== LICENSE IPL10 yeah, this is sort of dumb (cherry picked from commit 695d1aa896cf38cfe9856ba1c45b6b3cca7565a2) --- src/aklog/aklog_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aklog/aklog_main.c b/src/aklog/aklog_main.c index 336577880..5dbbf2bc3 100644 --- a/src/aklog/aklog_main.c +++ b/src/aklog/aklog_main.c @@ -1830,8 +1830,8 @@ static krb5_error_code get_credv5(krb5_context context, static krb5_principal client_principal = 0; if (dflag) { - printf("Getting tickets: %s%s%s@%s\n", name, inst[0] ? "/" : "", - inst, realm); + printf("Getting tickets: %s%s%s@%s\n", name, (inst && inst[0]) + ? "/" : "", inst ? inst : "", realm); } memset((char *)&increds, 0, sizeof(increds)); -- 2.39.5