Bugzilla – Attachment 3533 Details for
Bug 2982
gssapi_cleanup: supported mechs should be freed via gss_release_oid_set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cleanup GSSAPI mechanisms at end of authentication
bz2982.diff (text/plain), 915 bytes, created by
Damien Miller
on 2021-07-02 14:36:41 AEST
(
hide
)
Description:
cleanup GSSAPI mechanisms at end of authentication
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2021-07-02 14:36:41 AEST
Size:
915 bytes
patch
obsolete
>diff --git a/sshconnect2.c b/sshconnect2.c >index 5ff90c46b..ae27c0909 100644 >--- a/sshconnect2.c >+++ b/sshconnect2.c >@@ -483,6 +483,14 @@ ssh_userauth2(struct ssh *ssh, const char *local_user, > ssh_dispatch_set(ssh, SSH2_MSG_SERVICE_ACCEPT, &input_userauth_service_accept); > ssh_dispatch_run_fatal(ssh, DISPATCH_BLOCK, &authctxt.success); /* loop until success */ > pubkey_cleanup(ssh); >+#ifdef GSSAPI >+ if (authctxt.gss_supported_mechs != NULL) { >+ u_int ms; >+ >+ gss_release_oid_set(&ms, &authctxt.gss_supported_mechs); >+ authctxt.gss_supported_mechs = NULL; >+ } >+#endif > ssh->authctxt = NULL; > > ssh_dispatch_range(ssh, SSH2_MSG_USERAUTH_MIN, SSH2_MSG_USERAUTH_MAX, NULL); >@@ -826,9 +834,6 @@ userauth_gssapi_cleanup(struct ssh *ssh) > > ssh_gssapi_delete_ctx(&gssctxt); > authctxt->methoddata = NULL; >- >- free(authctxt->gss_supported_mechs); >- authctxt->gss_supported_mechs = NULL; > } > > static OM_uint32
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
djm
:
ok?
(
dtucker
)
Actions:
View
|
Diff
Attachments on
bug 2982
:
3254
|
3269
|
3299
| 3533