Browse code

tls: initialize the per-socket lifetime

Camille Oudot authored on 27/02/2015 10:47:33
Showing 1 changed files
... ...
@@ -591,6 +591,7 @@ int tls_h_tcpconn_init(struct tcp_connection *c, int sock)
591 591
 	c->type = PROTO_TLS;
592 592
 	c->rcv.proto = PROTO_TLS;
593 593
 	c->timeout = get_ticks_raw() + cfg_get(tls, tls_cfg, con_lifetime);
594
+	c->lifetime = cfg_get(tls, tls_cfg, con_lifetime);
594 595
 	c->extra_data = 0;
595 596
 	return 0;
596 597
 }