]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix GSSRPC server credential memory leak
authorGreg Hudson <ghudson@mit.edu>
Tue, 23 Aug 2016 16:35:50 +0000 (12:35 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 25 Aug 2016 14:24:23 +0000 (10:24 -0400)
commit670d9828086e979d5cdfd26f00ca88958a03754e
treef32ae5347b26f17499ff835fe637ac772851463d
parent17932091cc0d5981c5a78d389ffa4a5c7b532bd6
Fix GSSRPC server credential memory leak

In svc_auth_gss.c, stop using the global svcauth_gss_creds, and
instead keep a credential in struct svc_rpc_gss_data.  This change
ensures that the same credential is used for each accept_sec_context
call for a particular context, and ensures that the credential is
freed when the authentication data is destroyed.  Also, do not acquire
a credential when the default name is used (as it is in kadmind) as it
is not needed.

Leave the svcauth_gss_creds around for the backportable fix as it is
in the library export list.  It will be removed in a subsequent
commit.

ticket: 8480 (new)
target_version: 1.14-next
target_version: 1.13-next
src/lib/rpc/svc_auth_gss.c