]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-aklog-debug-text-dont-deref-null-ptr-20080401
authorDerrick Brashear <shadow@dementia.org>
Tue, 1 Apr 2008 19:15:40 +0000 (19:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Apr 2008 19:15:40 +0000 (19:15 +0000)
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

index 3365778806ff587a9564f1da2a6d2290a98b125e..5dbbf2bc35a1d4012486085f19597c1ae137b77f 100644 (file)
@@ -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));