[sr-dev] git:4.3:f699719f: tls: init tls hooks to {0}, avoiding fields enumeration

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 20 20:28:24 CEST 2015


Module: kamailio
Branch: 4.3
Commit: f699719fed8b1fffc653c272c01941730dab6d3e
URL: https://github.com/kamailio/kamailio/commit/f699719fed8b1fffc653c272c01941730dab6d3e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-10-20T20:27:30+02:00

tls: init tls hooks to {0}, avoiding fields enumeration

- if a new field is added, then should be no longer needed to update
  initialization

(cherry picked from commit 92c7656a37549de0eed3621ec243022400f6c6c4)

---

Modified: tls_hooks.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f699719fed8b1fffc653c272c01941730dab6d3e.diff
Patch: https://github.com/kamailio/kamailio/commit/f699719fed8b1fffc653c272c01941730dab6d3e.patch

---

diff --git a/tls_hooks.c b/tls_hooks.c
index 92e709f..b46a429 100644
--- a/tls_hooks.c
+++ b/tls_hooks.c
@@ -28,7 +28,7 @@
 
 #ifdef TLS_HOOKS
 
-struct tls_hooks tls_hook= {0,0,0,0,0,0,0,0};
+struct tls_hooks tls_hook= {0};
 
 static int tls_hooks_loaded=0;
 




More information about the sr-dev mailing list