&flags);
if (code != 0)
goto cleanup;
- if (flags != 0) {
+ if ((flags & 1) != 1) {
krb5_init_creds_get_times(ctx->k5c, ctx->u.icc, ×);
cred->tgt_expire = times.endtime;
ctx->state = IAKERB_TGS_REQ;
} else
break;
+ in = empty_data();
case IAKERB_TGS_REQ:
if (ctx->u.tcc == NULL) {
code = iakerb_tkt_creds_ctx(ctx, cred, name, time_req);
code = krb5_tkt_creds_step(ctx->k5c,
ctx->u.tcc,
- flags ? NULL : &in,
+ &in,
&out,
&realm,
&flags);
krb5_tkt_creds_store_creds(ctx->k5c, ctx->u.tcc, NULL);
goto cleanup;
}
- if (flags != 0) {
+ if ((flags & 1) != 1) {
code = krb5_tkt_creds_store_creds(ctx->k5c, ctx->u.tcc, NULL);
if (code != 0)
goto cleanup;