If there are no addresses, print addressless instead of nothing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15603 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -190,15 +190,19 @@ print_cred_verbose(krb5_context context, krb5_creds *cred)
|
|||||||
PRINT_FLAG(anonymous);
|
PRINT_FLAG(anonymous);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("Addresses: ");
|
printf("Addresses: ");
|
||||||
for(j = 0; j < cred->addresses.len; j++){
|
if (cred->addresses.len != 0) {
|
||||||
char buf[128];
|
for(j = 0; j < cred->addresses.len; j++){
|
||||||
size_t len;
|
char buf[128];
|
||||||
if(j) printf(", ");
|
size_t len;
|
||||||
ret = krb5_print_address(&cred->addresses.val[j],
|
if(j) printf(", ");
|
||||||
buf, sizeof(buf), &len);
|
ret = krb5_print_address(&cred->addresses.val[j],
|
||||||
|
buf, sizeof(buf), &len);
|
||||||
if(ret == 0)
|
|
||||||
printf("%s", buf);
|
if(ret == 0)
|
||||||
|
printf("%s", buf);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
printf("addressless");
|
||||||
}
|
}
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user