diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-08-11 18:17:42 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2012-08-13 15:41:55 -0400 |
commit | af4ba305e3d0164ed70bbf089acad614e288312a (patch) | |
tree | e1c51a22538fccd65e0f485e935f3130a26f02bb /src/lib | |
parent | 7ba690558583388082ffa044a36f3c45fd5ac2c8 (diff) | |
download | krb5-af4ba305e3d0164ed70bbf089acad614e288312a.zip krb5-af4ba305e3d0164ed70bbf089acad614e288312a.tar.gz krb5-af4ba305e3d0164ed70bbf089acad614e288312a.tar.bz2 |
Use gssalloc in krb5_gss_export_name
krb5_gss_export_name uses malloc to construct a gss_buffer_desc value,
and should use gssalloc_malloc instead.
(cherry picked from commit e54c8d7e6c6185ff4d0e1b472f98897c2e3fc5b3)
ticket: 7233
version_fixed: 1.10.4
status: resolved
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/gssapi/krb5/export_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/gssapi/krb5/export_name.c b/src/lib/gssapi/krb5/export_name.c index 55c9e83..485ebfb 100644 --- a/src/lib/gssapi/krb5/export_name.c +++ b/src/lib/gssapi/krb5/export_name.c @@ -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) |