I'm seeing odd behavior when I call vas_gss_spnego_initiate: My program calls vas_gss_spnego_initiate repeatedly and some calls succeed and everything works OK yet other calls fail with GSS_S_BAD_MECH. This happens in the same lifecycle and using the same keytab and in fact the same context and identity. I have not found any pattern, it just seems like intermittent failures.
I'm at a loss. What could cause vas_gss_spnego_initiate to behave like this?
Thank you for any ideas/tips!