gssapi: Free both_supported on a new error path

Signed-off-by: Pavol Žáčik <pzacik@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Pavol Žáčik
2026-02-13 10:16:21 +01:00
committed by Jakub Jelen
parent 18d7a3967c
commit 2f1f474e27

View File

@@ -243,6 +243,7 @@ ssh_gssapi_handle_userauth(ssh_session session, const char *user,
/* Get the server supported oids */ /* Get the server supported oids */
rc = ssh_gssapi_server_oids(&supported); rc = ssh_gssapi_server_oids(&supported);
if (rc != SSH_OK) { if (rc != SSH_OK) {
gss_release_oid_set(&min_stat, &both_supported);
return SSH_ERROR; return SSH_ERROR;
} }