summaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-01-17 11:25:33 +0100
committerMauro Sardara <msardara@cisco.com>2020-01-17 11:25:33 +0100
commitf81e8c155365aa4b30c4c6eae48b7eba71b03312 (patch)
treebc223461b198c879bb80d1e1651a117bd3a8b9dd /ctrl/libhicnctrl/src
parent44525ac58d4a4b61d9a8e3f888ca3c6194b0a329 (diff)
[HICN-478] Correctly initialize struct sockaddrstorage
Change-Id: I74992ed6b96fdd1c567dc2025e10aa9b0c169f47 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'ctrl/libhicnctrl/src')
-rw-r--r--ctrl/libhicnctrl/src/api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/src/api.c b/ctrl/libhicnctrl/src/api.c
index 5e8536480..7e6a80254 100644
--- a/ctrl/libhicnctrl/src/api.c
+++ b/ctrl/libhicnctrl/src/api.c
@@ -565,7 +565,8 @@ hc_sock_get_fd(hc_sock_t * s)
int
hc_sock_connect(hc_sock_t * s)
{
- struct sockaddr_storage ss = { 0 };
+ struct sockaddr_storage ss;
+ memset(&ss, 0, sizeof(struct sockaddr_storage));
if (hc_sock_parse_url(s->url, (struct sockaddr *)&ss) < 0)
goto ERR_PARSE;