]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix leaks in gss_inquire_cred_by_oid()
authorGreg Hudson <ghudson@mit.edu>
Sun, 12 Mar 2017 16:30:59 +0000 (12:30 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 13 Mar 2017 16:54:39 +0000 (12:54 -0400)
In the mechglue gss_inquire_cred_by_oid(), remove an unnecessary
allocation of ret_set which is overwritten by the first mechanism's
result.

ticket: 8559 (new)
target_version: 1.15-next
target_version: 1.14-next
tags: pullup

src/lib/gssapi/mechglue/g_inq_cred_oid.c

index 4c23dfcbd364a1f54550cc643c2977fe36e8fae4..df51b44e9a5b91165949e6c6c7190fb5384f3a3a 100644 (file)
@@ -85,11 +85,6 @@ gss_inquire_cred_by_oid(OM_uint32 *minor_status,
 
     union_cred = (gss_union_cred_t) cred_handle;
 
-    status = gss_create_empty_buffer_set(minor_status, &ret_set);
-    if (status != GSS_S_COMPLETE) {
-       return status;
-    }
-
     status = GSS_S_UNAVAILABLE;
 
     for (i = 0; i < union_cred->count; i++) {