Indent the patch from Andrew and make it compile again
This commit is contained in:
@@ -321,6 +321,8 @@ hdb_next_entry(krb5_context context,
|
||||
struct hdb_cursor *c = cursor->data;
|
||||
krb5_error_code ret;
|
||||
|
||||
memset(entry, 0, sizeof(*entry));
|
||||
|
||||
if (c->first) {
|
||||
c->first = FALSE;
|
||||
ret = (c->db->hdb_firstkey)(context, c->db,
|
||||
@@ -360,13 +362,21 @@ hdb_next_entry(krb5_context context,
|
||||
* hdb is one record per principal.
|
||||
*/
|
||||
|
||||
krb5_copy_principal(context,
|
||||
ret = krb5_copy_principal(context,
|
||||
c->hdb_entry.entry.principal,
|
||||
&entry->principal);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
entry->vno = c->hdb_entry.entry.kvno;
|
||||
krb5_copy_keyblock_contents(context,
|
||||
ret = krb5_copy_keyblock_contents(context,
|
||||
&c->hdb_entry.entry.keys.val[c->key_idx].key,
|
||||
&entry->keyblock);
|
||||
if (ret) {
|
||||
krb5_free_principal(context, entry->principal);
|
||||
memset(entry, 0, sizeof(*entry));
|
||||
return ret;
|
||||
}
|
||||
c->key_idx++;
|
||||
|
||||
/*
|
||||
@@ -379,6 +389,7 @@ hdb_next_entry(krb5_context context,
|
||||
c->next = TRUE;
|
||||
c->key_idx = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user