The code path for SPNEGO_FALLBACK mixed up the order of memory context, event context. As one is "void *" and the other "struct tevent_context *" the compiler doesn't complain about it. -Wc++-compat would warn about it: warning: request for implicit conversion from ‘TALLOC_CTX *’ to ‘struct tevent_context *’ not permitted in C++ [-Wc++-compat] But it also warns about a lot of other stuff, so it's not easy to add it without -Wno-error=c++-compat.
Created attachment 13331 [details] Patch for v4-6-test
Created attachment 13332 [details] Patch for v4-5-test
Reassigning to Karolin for inclusion in 4.5 and 4.6.
(In reply to Ralph Böhme from comment #3) Pushed to autobuild-v4-{6,5}-test.
(In reply to Karolin Seeger from comment #4) Pushed to both branches. Closing out bug report. Thanks!