]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix SPNEGO acceptor mech filtering 1073/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 21 May 2020 18:15:25 +0000 (14:15 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 21 May 2020 22:33:26 +0000 (18:33 -0400)
Commit c2ca2f26eaf817a6a7ed42257c380437ab802bd9 (ticket 8851)
accidentally changed the SPNEGO acceptor code to filter mechanisms by
the obtainability of initiator credentials rather than acceptor
credentials, when the default acceptor credential is used.

ticket: 8908 (new)
tags: pullup
target_version: 1.18-next

src/lib/gssapi/spnego/spnego_mech.c

index 28e00c131f393be1b756e7349634b4b860918684..68e389748f7bfc84212fc78f350611204d2d3517 100644 (file)
@@ -1380,7 +1380,7 @@ acc_ctx_new(OM_uint32 *minor_status,
                goto cleanup;
        }
 
-       ret = get_negotiable_mechs(minor_status, sc, spcred, GSS_C_INITIATE);
+       ret = get_negotiable_mechs(minor_status, sc, spcred, GSS_C_ACCEPT);
        if (ret != GSS_S_COMPLETE) {
                *return_token = NO_TOKEN_SEND;
                goto cleanup;