Skip to content

Commit

Permalink
kadmin: del_enctype whitespace
Browse files Browse the repository at this point in the history
Fix whitespace and bracing in del_enctype().

No functional change.

Change-Id: I4e70b381aa54a6b0965c88713fbfb4d29bc4495e
  • Loading branch information
nicowilliams authored and jaltman committed Mar 14, 2015
1 parent 6683650 commit edb6c1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kadmin/del_enctype.c
Expand Up @@ -49,6 +49,7 @@ del_enctype(void *opt, int argc, char **argv)
krb5_key_data *new_key_data;
int n_etypes;
krb5_enctype *etypes;
krb5_key_data *key;

memset (&princ, 0, sizeof(princ));
princ_name = argv[0];
Expand Down Expand Up @@ -88,14 +89,15 @@ del_enctype(void *opt, int argc, char **argv)
}

for (i = 0, j = 0; i < princ.n_key_data; ++i) {
krb5_key_data *key = &princ.key_data[i];
int docopy = 1;
key = &princ.key_data[i];

for (k = 0; k < n_etypes; ++k)
for (k = 0; k < n_etypes; ++k) {
if (etypes[k] == key->key_data_type[0]) {
docopy = 0;
break;
}
}
if (docopy) {
new_key_data[j++] = *key;
} else {
Expand Down

0 comments on commit edb6c1b

Please sign in to comment.