mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Colin Watson points out an apparently erroneous cast: Ssh_gss_name
and gss_name_t are supposed to be congruent types, so a pointer to one should never be cast to a non-indirect instance of the other. [originally from svn r8157]
This commit is contained in:
parent
c87697a00f
commit
0251dbf13e
@ -159,7 +159,7 @@ Ssh_gss_stat ssh_gss_release_cred(Ssh_gss_ctx *ctx)
|
||||
Ssh_gss_stat ssh_gss_release_name(Ssh_gss_name *srv_name)
|
||||
{
|
||||
OM_uint32 min_stat,maj_stat;
|
||||
maj_stat = gss_release_name(&min_stat, (gss_name_t) srv_name);
|
||||
maj_stat = gss_release_name(&min_stat, (gss_name_t *) srv_name);
|
||||
|
||||
if (maj_stat == GSS_S_COMPLETE) return SSH_GSS_OK;
|
||||
return SSH_GSS_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user