In ssl_action_wait_for_hs() the local variables called "cs" is just a
copy of s->scf that's only used once, so it can be removed. In addition
the check was removed as well since it's not possible to have a NULL SC
on a stream.
struct session *sess, struct stream *s, int flags)
{
struct connection *conn;
- struct stconn *cs;
conn = objt_conn(sess->origin);
- cs = s->scf;
- if (conn && cs) {
+ if (conn) {
if (conn->flags & (CO_FL_EARLY_SSL_HS | CO_FL_SSL_WAIT_HS)) {
- sc_ep_set(cs, SE_FL_WAIT_FOR_HS);
+ sc_ep_set(s->scf, SE_FL_WAIT_FOR_HS);
s->req.flags |= CF_READ_NULL;
return ACT_RET_YIELD;
}