Skip to content

Commit

Permalink
Check sort_enctypes return value in gic_keytab
Browse files Browse the repository at this point in the history
  • Loading branch information
greghudson committed Jul 2, 2012
1 parent e679fe0 commit 7266bec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/krb5/krb/gic_keytab.c
Expand Up @@ -205,9 +205,10 @@ krb5_init_creds_set_keytab(krb5_context context,
}

/* Sort the request enctypes so the ones in the keytab appear first. */
sort_enctypes(ctx->request->ktype, ctx->request->nktypes, etype_list);
ret = sort_enctypes(ctx->request->ktype, ctx->request->nktypes,
etype_list);
free(etype_list);
return 0;
return ret;
}

static krb5_error_code
Expand Down

0 comments on commit 7266bec

Please sign in to comment.