]> git.ipfire.org Git - thirdparty/bind9.git/commit
Free resources when gss_accept_sec_context() fails
authorMichał Kępień <michal@isc.org>
Thu, 8 Apr 2021 08:33:44 +0000 (10:33 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 8 Apr 2021 09:04:21 +0000 (11:04 +0200)
commitdc1ed887760fc64d65034eb38b2066dc5bf54e04
treee6d68088159ab8224ddae4bf6a0bf24bf31529f5
parent0c04b831068136d3ce2525681f94c1f553874921
Free resources when gss_accept_sec_context() fails

Even if a call to gss_accept_sec_context() fails, it might still cause a
GSS-API response token to be allocated and left for the caller to
release.  Make sure the token is released before an early return from
dst_gssapi_acceptctx().

(cherry picked from commit d954e152d9f2901118b1fe36d3931ec244317fab)
lib/dns/gssapictx.c