mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +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:
3
CHANGES
3
CHANGES
@@ -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
|
5613. [bug] It was possible to write an invalid transaction header
|
||||||
in the journal file for a managed-keys database after
|
in the journal file for a managed-keys database after
|
||||||
upgrading. This has been fixed. Invalid headers in
|
upgrading. This has been fixed. Invalid headers in
|
||||||
|
@@ -739,6 +739,9 @@ dst_gssapi_acceptctx(dns_gss_cred_id_t cred, const char *gssapi_keytab,
|
|||||||
default:
|
default:
|
||||||
gss_log(3, "failed gss_accept_sec_context: %s",
|
gss_log(3, "failed gss_accept_sec_context: %s",
|
||||||
gss_error_tostring(gret, minor, buf, sizeof(buf)));
|
gss_error_tostring(gret, minor, buf, sizeof(buf)));
|
||||||
|
if (gouttoken.length > 0U) {
|
||||||
|
(void)gss_release_buffer(&minor, &gouttoken);
|
||||||
|
}
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user