This is due to the fact that qc->conn is never initialized before calling
qc_ssl_sess_init().
Must be backported as far as 2.6.
*ssl = SSL_new(ssl_ctx);
if (!*ssl) {
if (!retry--)
- goto err;
+ goto leave;
pool_gc(NULL);
goto retry;
SSL_free(*ssl);
*ssl = NULL;
if (!retry--)
- goto err;
+ goto leave;
pool_gc(NULL);
goto retry;
leave:
TRACE_LEAVE(QUIC_EV_CONN_NEW, qc);
return ret;
-
- err:
- qc->conn->err_code = CO_ER_SSL_NO_MEM;
- goto leave;
}
/* Allocate the ssl_sock_ctx from connection <qc>. This creates the tasklet