diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-17 12:57:10 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-19 15:34:46 +0100 |
commit | fde4d355dbb5f79df97f0daa87546565395e399d (patch) | |
tree | 0ad71c3bf7bc5ff2cd9c5c54a2008fe1925b3e83 | |
parent | tools: wg-quick: support old ip(8) (diff) | |
download | wireguard-monolithic-historical-fde4d355dbb5f79df97f0daa87546565395e399d.tar.xz wireguard-monolithic-historical-fde4d355dbb5f79df97f0daa87546565395e399d.zip |
config: satisfy sparse
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 30c876e..4191eb6 100644 --- a/src/config.c +++ b/src/config.c @@ -75,7 +75,7 @@ static int set_peer(struct wireguard_device *wg, void __user *user_peer, size_t } if (in_peer.endpoint.addr.sa_family == AF_INET || in_peer.endpoint.addr.sa_family == AF_INET6) { - struct endpoint endpoint = { 0 }; + struct endpoint endpoint = { { { 0 } } }; memcpy(&endpoint, &in_peer.endpoint, sizeof(in_peer.endpoint)); socket_set_peer_endpoint(peer, &endpoint); } |