were fixed independently on the trunk in r23742 (#6603) and the first
hunk would cause spnego_gss_init_sec_context to seg fault when passed
GSS_C_NO_BUFFER as input_token.
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/iakerb@23860
dc483132-0cff-0310-8789-
dd5450dbe970
* token back if this is the first token or if a MIC exchange
* is required.
*/
- if (mechtok_in->length != 0 &&
+ if (*send_token == CONT_TOKEN_SEND &&
mechtok_out->length == 0 &&
(!sc->mic_reqd ||
!(sc->ctx_flags & GSS_C_INTEG_FLAG))) {
*send_token = ERROR_TOKEN_SEND;
}
*negState = REJECT;
- } else if (*send_token == NO_TOKEN_SEND)
- *send_token = CONT_TOKEN_SEND;
+ }
return ret;
}