]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] fix: nil: Release gnamebuf also on the error path
authorOndřej Surý <ondrej@isc.org>
Fri, 6 Feb 2026 19:57:31 +0000 (20:57 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 6 Feb 2026 19:57:31 +0000 (20:57 +0100)
commitbfb55a587da916bbd03e4db2ef810424271b21c2
tree47d0cbafb88f2f07beb43bcd8e11d68f43295fc6
parentf4fdcee03f19e1b08ddbcf9df1f663a2dd23822e
parent07877aa74276d6b81fecb14329da50949b0f1dc8
[9.20] fix: nil: Release gnamebuf also on the error path

In dst_gssapi_acceptctx(), the gnamebuf could leak a little bit of
memory if dns_name_fromtext() would theoretically fail.  This would
require a Kerberos principal with invalid DNS name.

Closes #5737

Backport of MR !11536

Merge branch 'backport-5737-memory-leak-in-dst_gssapi_acceptctx-on-dns_name_fromtext-failure-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11537