(do_list): make sure list of keys is NULL terminated; similar to patch
sent by Chris Chiappa git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10086 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -122,11 +122,11 @@ do_list(const char *keytab_string)
|
|||||||
((unsigned char*)entry.keyblock.keyvalue.data)[i]);
|
((unsigned char*)entry.keyblock.keyvalue.data)[i]);
|
||||||
CHECK_MAX(key);
|
CHECK_MAX(key);
|
||||||
}
|
}
|
||||||
kp->next = NULL;
|
|
||||||
*kie = kp;
|
*kie = kp;
|
||||||
kie = &kp->next;
|
kie = &kp->next;
|
||||||
krb5_kt_free_entry(context, &entry);
|
krb5_kt_free_entry(context, &entry);
|
||||||
}
|
}
|
||||||
|
*kie = NULL; /* termiate list */
|
||||||
ret = krb5_kt_end_seq_get(context, keytab, &cursor);
|
ret = krb5_kt_end_seq_get(context, keytab, &cursor);
|
||||||
|
|
||||||
printf("%-*s %-*s %-*s", max_version, "Vno",
|
printf("%-*s %-*s %-*s", max_version, "Vno",
|
||||||
|
Reference in New Issue
Block a user