From 0251dbf13ef1e5bae91d16dabe40f1585e02746c Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 31 Aug 2008 19:18:17 +0000 Subject: [PATCH] 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] --- unix/uxgss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/uxgss.c b/unix/uxgss.c index 5e59ed76..d2585179 100644 --- a/unix/uxgss.c +++ b/unix/uxgss.c @@ -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;