Browse code

core/tcp: init max_tls_connections in tcp options check

Daniel-Constantin Mierla authored on 20/12/2011 08:20:40
Showing 1 changed files
... ...
@@ -375,8 +375,10 @@ void tcp_options_check()
375 375
 						MAX_TCP_CON_LIFETIME, MAX_TCP_CON_LIFETIME);
376 376
 #ifdef USE_TCP
377 377
 	tcp_default_cfg.max_connections=tcp_max_connections;
378
+	tcp_default_cfg.max_tls_connections=tls_max_connections;
378 379
 #else /* USE_TCP */
379 380
 	tcp_default_cfg.max_connections=0;
381
+	tcp_default_cfg.max_tls_connections=0;
380 382
 #endif /* USE_TCP */
381 383
 	tcp_cfg_def_fix("rd_buf_size", (int*)&tcp_default_cfg.rd_buf_size);
382 384
 	tcp_cfg_def_fix("wq_blk_size", (int*)&tcp_default_cfg.wq_blk_size);