summaryrefslogtreecommitdiff
path: root/stun
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2017-04-04 12:30:27 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2017-04-04 13:29:01 -0400
commitdb05e8b0fdc713df93cd6a4c3914e5aee38b2391 (patch)
treeb8d88108c3a4df22cb3402728091405ae7691d39 /stun
parent0672758b9621801c8f0d9e3c920370983b267a68 (diff)
downloadlibnice-db05e8b0fdc713df93cd6a4c3914e5aee38b2391.tar.gz
Make clang-analyzer happy
Various little things, none of which should make a functional difference.
Diffstat (limited to 'stun')
-rw-r--r--stun/usages/bind.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stun/usages/bind.c b/stun/usages/bind.c
index 8dd7afc..d56790f 100644
--- a/stun/usages/bind.c
+++ b/stun/usages/bind.c
@@ -479,7 +479,7 @@ StunUsageBindReturn stun_usage_bind_run (const struct sockaddr *srv,
size_t len;
StunUsageTransReturn ret;
int val;
- struct sockaddr_storage alternate_server;
+ struct sockaddr_storage alternate_server = { AF_UNSPEC } ;
socklen_t alternate_server_len = sizeof (alternate_server);
StunUsageBindReturn bind_ret;
@@ -548,6 +548,8 @@ StunUsageBindReturn stun_usage_bind_run (const struct sockaddr *srv,
if (bind_ret == STUN_USAGE_BIND_RETURN_ALTERNATE_SERVER) {
stun_trans_deinit (&trans);
+ assert (alternate_server.ss_family != AF_UNSPEC);
+
ret = stun_trans_create (&trans, SOCK_DGRAM, 0,
(struct sockaddr *) &alternate_server, alternate_server_len);