diff options
author | Mauro Sardara <msardara@cisco.com> | 2020-01-17 11:25:33 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2020-01-17 11:25:33 +0100 |
commit | f81e8c155365aa4b30c4c6eae48b7eba71b03312 (patch) | |
tree | bc223461b198c879bb80d1e1651a117bd3a8b9dd /ctrl/libhicnctrl | |
parent | 44525ac58d4a4b61d9a8e3f888ca3c6194b0a329 (diff) |
[HICN-478] Correctly initialize struct sockaddrstorage
Change-Id: I74992ed6b96fdd1c567dc2025e10aa9b0c169f47
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'ctrl/libhicnctrl')
-rw-r--r-- | ctrl/libhicnctrl/src/api.c | 3 |
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; |