Skip to content

Commit

Permalink
Use gssalloc in krb5_gss_export_name
Browse files Browse the repository at this point in the history
krb5_gss_export_name uses malloc to construct a gss_buffer_desc value,
and should use gssalloc_malloc instead.

ticket: 7233
  • Loading branch information
greghudson committed Aug 11, 2012
1 parent bef36f6 commit 44df712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/gssapi/krb5/export_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ krb5_gss_export_name(OM_uint32 *minor_status, const gss_name_t input_name,
krb5_free_context(context);
length = strlen(str);
exported_name->length = 10 + length + gss_mech_krb5->length;
exported_name->value = malloc(exported_name->length);
exported_name->value = gssalloc_malloc(exported_name->length);
if (!exported_name->value) {
free(str);
if (minor_status)
Expand Down

0 comments on commit 44df712

Please sign in to comment.