This fixes another authenticated RPC hang. This occurs when an incorrect user ID (UPN) is specified in the authentication information. The created GSSAPI context is invalid, but that information is lost, so in subsequent RPC calls with this binding handle, the RPC hangs, because the rpc__cn_assoc_alter_context() state is out of sync with the GSSAPI credential.
After fixing the hang, a memory leak in GSSAPI/SPNEGO was found. This is fixed in this submit.
This fixes another authenticated RPC hang. This occurs when an incorrect user ID (UPN) is specified in the authentication information. The created GSSAPI context is invalid, but that information is lost, so in subsequent RPC calls with this binding handle, the RPC hangs, because the rpc__cn_assoc_alter_context() state is out of sync with the GSSAPI credential.
After fixing the hang, a memory leak in GSSAPI/SPNEGO was found. This is fixed in this submit.