Pull in a fix for a mem leak from master (RT#7803)
- pull in fix from master to avoid a memory leak when a mechanism's init_sec_context function fails (RT#7803, part of #1043962)
This commit is contained in:
parent
39888b7c42
commit
460d74d224
28
krb5-master-gss_oid_leak.patch
Normal file
28
krb5-master-gss_oid_leak.patch
Normal file
@ -0,0 +1,28 @@
|
||||
commit 1cda48a7ed4069cfc052f974ec3d76a9137c8c5a
|
||||
Author: Simo Sorce <simo@redhat.com>
|
||||
Date: Fri Dec 13 12:00:41 2013 -0500
|
||||
|
||||
Fix memory leak in SPNEGO initiator
|
||||
|
||||
If we eliminate a mechanism from the initiator list because
|
||||
gss_init_sec_context fails, free the memory for that mech OID before
|
||||
removing it from the list.
|
||||
|
||||
[ghudson@mit.edu: clarified commit message]
|
||||
|
||||
ticket: 7803 (new)
|
||||
target_version: 1.12.1
|
||||
tags: pullup
|
||||
|
||||
diff --git a/src/lib/gssapi/spnego/spnego_mech.c b/src/lib/gssapi/spnego/spnego_mech.c
|
||||
index 818a1b4..06cfab0 100644
|
||||
--- a/src/lib/gssapi/spnego/spnego_mech.c
|
||||
+++ b/src/lib/gssapi/spnego/spnego_mech.c
|
||||
@@ -890,6 +890,7 @@ init_ctx_call_init(OM_uint32 *minor_status,
|
||||
* can do this with recursion. If all mechanisms produce errors, the
|
||||
* caller should get the error from the first mech in the list.
|
||||
*/
|
||||
+ gssalloc_free(sc->mech_set->elements->elements);
|
||||
memmove(sc->mech_set->elements, sc->mech_set->elements + 1,
|
||||
--sc->mech_set->count * sizeof(*sc->mech_set->elements));
|
||||
if (sc->mech_set->count == 0)
|
@ -92,6 +92,7 @@ Patch129: krb5-1.11-run_user_0.patch
|
||||
Patch134: krb5-1.11-kpasswdtest.patch
|
||||
Patch135: krb5-master-no-malloc0.patch
|
||||
Patch136: krb5-master-ignore-empty-unnecessary-final-token.patch
|
||||
Patch137: krb5-master-gss_oid_leak.patch
|
||||
|
||||
License: MIT
|
||||
URL: http://web.mit.edu/kerberos/www/
|
||||
@ -304,6 +305,7 @@ ln -s NOTICE LICENSE
|
||||
%patch105 -p1 -b .kvno
|
||||
%patch135 -p1 -b .no-malloc0
|
||||
%patch136 -p1 -b .ignore-empty-unnecessary-final-token
|
||||
%patch137 -p1 -b .gss_oid_leak
|
||||
|
||||
# Apply when the hard-wired or configured default location is
|
||||
# DIR:/run/user/%%{uid}/krb5cc.
|
||||
@ -964,6 +966,8 @@ exit 0
|
||||
#1043962)
|
||||
- pull in fix from master to ignore an empty token from an acceptor if
|
||||
we've already finished authenticating (RT#7797, part of #1043962)
|
||||
- pull in fix from master to avoid a memory leak when a mechanism's
|
||||
init_sec_context function fails (RT#7803, part of #1043962)
|
||||
|
||||
* Wed Dec 11 2013 Nalin Dahyabhai <nalin@redhat.com> - 1.12-1
|
||||
- update to 1.12 final
|
||||
|
Loading…
Reference in New Issue
Block a user