Module: kamailio
Branch: master
Commit: deb2904d73a7a540f8eb6e2e8722185b7f0a9a99
URL:
https://github.com/kamailio/kamailio/commit/deb2904d73a7a540f8eb6e2e8722185…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-11T16:50:25+02:00
tls: proper upper limit for tls connection lifetime
- GH #1639
---
Modified: src/modules/tls/tls_cfg.h
---
Diff:
https://github.com/kamailio/kamailio/commit/deb2904d73a7a540f8eb6e2e8722185…
Patch:
https://github.com/kamailio/kamailio/commit/deb2904d73a7a540f8eb6e2e8722185…
---
diff --git a/src/modules/tls/tls_cfg.h b/src/modules/tls/tls_cfg.h
index b4427dda3e..ae404e14bc 100644
--- a/src/modules/tls/tls_cfg.h
+++ b/src/modules/tls/tls_cfg.h
@@ -34,8 +34,7 @@
/* maximum accepted lifetime (maximum possible is ~ MAXINT/2)
* (it should be kept in sync w/ MAX_TCP_CON_LIFETIME from tcp_main.c:
* MAX_TLS_CON_LIFETIME <= MAX_TCP_CON_LIFETIME )*/
-#define MAX_TLS_CON_LIFETIME (1U<<(sizeof(ticks_t)*8-1))
-
+#define MAX_TLS_CON_LIFETIME ((1U<<(sizeof(ticks_t)*8-1))-1)
struct cfg_group_tls {