2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Merge branch '2620-free-resources-when-gss_accept_sec_context-fails' into 'main'

Free resources when gss_accept_sec_context() fails

Closes #2620

See merge request isc-projects/bind9!4873
This commit is contained in:
Michał Kępień
2021-04-08 08:40:27 +00:00
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
5614. [bug] Ensure all resources are properly cleaned up when a call
to gss_accept_sec_context() fails. [GL #2620]
5613. [bug] It was possible to write an invalid transaction header
in the journal file for a managed-keys database after
upgrading. This has been fixed. Invalid headers in

View File

@@ -739,6 +739,9 @@ dst_gssapi_acceptctx(dns_gss_cred_id_t cred, const char *gssapi_keytab,
default:
gss_log(3, "failed gss_accept_sec_context: %s",
gss_error_tostring(gret, minor, buf, sizeof(buf)));
if (gouttoken.length > 0U) {
(void)gss_release_buffer(&minor, &gouttoken);
}
return (result);
}