[sr-dev] git:master:92c7656a: tls: init tls hooks to {0}, avoiding fields enumeration
Daniel-Constantin Mierla
miconda at gmail.com
Tue Oct 20 19:45:57 CEST 2015
Module: kamailio
Branch: master
Commit: 92c7656a37549de0eed3621ec243022400f6c6c4
URL: https://github.com/kamailio/kamailio/commit/92c7656a37549de0eed3621ec243022400f6c6c4
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-10-20T19:44:47+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
---
Modified: tls_hooks.c
---
Diff: https://github.com/kamailio/kamailio/commit/92c7656a37549de0eed3621ec243022400f6c6c4.diff
Patch: https://github.com/kamailio/kamailio/commit/92c7656a37549de0eed3621ec243022400f6c6c4.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