Bugzilla – Attachment 3269 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]
better version
gssapi_cleanup3.diff (text/plain), 989 bytes, created by
Markus
on 2019-04-23 19:05:38 AEST
(
hide
)
Description:
better version
Filename:
MIME Type:
Creator:
Markus
Created:
2019-04-23 19:05:38 AEST
Size:
989 bytes
patch
obsolete
>diff --git a/sshconnect2.c b/sshconnect2.c >index dffee90..47d6276 100644 >--- a/sshconnect2.c >+++ b/sshconnect2.c >@@ -373,6 +373,9 @@ ssh_userauth2(struct ssh *ssh, const char *local_user, > { > Authctxt authctxt; > int r; >+#if GSSAPI >+ int ms; >+#endif > > if (options.challenge_response_authentication) > options.kbd_interactive_authentication = 1; >@@ -420,6 +423,11 @@ ssh_userauth2(struct ssh *ssh, const char *local_user, > > ssh_dispatch_range(ssh, SSH2_MSG_USERAUTH_MIN, SSH2_MSG_USERAUTH_MAX, NULL); > >+#if GSSAPI >+ gss_release_oid_set(&ms, &authctxt.gss_supported_mechs); >+ authctxt.gss_supported_mechs = NULL; >+#endif >+ > if (!authctxt.success) > fatal("Authentication failed."); > debug("Authentication succeeded (%s).", authctxt.method->name); >@@ -754,9 +762,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
Actions:
View
|
Diff
Attachments on
bug 2982
:
3254
|
3269
|
3299
|
3533