Misc fixes (coverity)
This commit is contained in:
@@ -129,6 +129,7 @@ do_list(struct list_options *opt, const char *keytab_str)
|
||||
if (entry.aliases) {
|
||||
unsigned int i;
|
||||
struct rk_strpool *p = NULL;
|
||||
char *s;
|
||||
|
||||
for (i = 0; i< entry.aliases->len; i++) {
|
||||
krb5_unparse_name_fixed(context, entry.principal, buf, sizeof(buf));
|
||||
@@ -136,7 +137,8 @@ do_list(struct list_options *opt, const char *keytab_str)
|
||||
i + 1 < entry.aliases->len ? ", " : "");
|
||||
|
||||
}
|
||||
rtbl_add_column_entry_by_id(table, 5, rk_strpoolcollect(p));
|
||||
rtbl_add_column_entry_by_id(table, 5, (s = rk_strpoolcollect(p)));
|
||||
free(s);
|
||||
}
|
||||
|
||||
krb5_kt_free_entry(context, &entry);
|
||||
|
Reference in New Issue
Block a user