aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-11-25 11:13:25 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-11-26 11:33:33 +0100
commit420bd194691661631b115016cce63c249b33a0d1 (patch)
treed2b98f40238de4de74ccc9c72b4d8cc91c2e1b52
parentallowedips: safely dereference rcu roots (diff)
downloadwireguard-monolithic-historical-420bd194691661631b115016cce63c249b33a0d1.tar.xz
wireguard-monolithic-historical-420bd194691661631b115016cce63c249b33a0d1.zip
socket: remove redundant check of new4
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index d4f65bb..f9a06a3 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -410,7 +410,7 @@ retry:
}
#endif
- wg_socket_reinit(wg, new4 ? new4->sk : NULL, new6 ? new6->sk : NULL);
+ wg_socket_reinit(wg, new4->sk, new6 ? new6->sk : NULL);
return 0;
}