Skip to content

Commit

Permalink
Fix conformance issue in GSSAPI tests
Browse files Browse the repository at this point in the history
Although some C compilers allow a function returning void to be called
in a return statement from another function returning void, it isn't
conformant and generates an error from (at least) the HP-UX native
compiler.  Reported by Michael Osipov.

(cherry picked from commit 6fe25e7)

ticket: 9023
version_fixed: 1.19.3
  • Loading branch information
greghudson committed Mar 9, 2022
1 parent f5162aa commit 724040b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/tests/gssapi/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ establish_contexts(gss_OID imech, gss_cred_id_t icred, gss_cred_id_t acred,
gss_ctx_id_t *actx, gss_name_t *src_name, gss_OID *amech,
gss_cred_id_t *deleg_cred)
{
return establish_contexts_ex(imech, icred, acred, tname, flags, ictx, actx,
GSS_C_NO_CHANNEL_BINDINGS,
GSS_C_NO_CHANNEL_BINDINGS, NULL, src_name,
amech, deleg_cred);
establish_contexts_ex(imech, icred, acred, tname, flags, ictx, actx,
GSS_C_NO_CHANNEL_BINDINGS, GSS_C_NO_CHANNEL_BINDINGS,
NULL, src_name, amech, deleg_cred);
}

void
Expand Down

0 comments on commit 724040b

Please sign in to comment.