diff options
author | 2017-10-20 18:46:30 +0200 | |
---|---|---|
committer | 2017-10-31 17:22:49 +0100 | |
commit | da8fe333327e8020170fcfef88a9e7fab6197377 (patch) | |
tree | f516f8be38c9520c238acbe4bce525fbafc4ede6 /src/socket.c | |
parent | compat: fix up stat calculation for udp tunnel (diff) | |
download | wireguard-linux-compat-da8fe333327e8020170fcfef88a9e7fab6197377.tar.xz wireguard-linux-compat-da8fe333327e8020170fcfef88a9e7fab6197377.zip |
global: accept decent check_patch.pl suggestions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c index 913ad0a..d2e80d9 100644 --- a/src/socket.c +++ b/src/socket.c @@ -263,6 +263,7 @@ out: void socket_set_peer_endpoint_from_skb(struct wireguard_peer *peer, const struct sk_buff *skb) { struct endpoint endpoint; + if (!socket_endpoint_from_skb(&endpoint, skb)) socket_set_peer_endpoint(peer, &endpoint); } |