diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-11-25 11:13:25 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-11-26 11:33:33 +0100 |
commit | 420bd194691661631b115016cce63c249b33a0d1 (patch) | |
tree | d2b98f40238de4de74ccc9c72b4d8cc91c2e1b52 | |
parent | allowedips: safely dereference rcu roots (diff) | |
download | wireguard-monolithic-historical-420bd194691661631b115016cce63c249b33a0d1.tar.xz wireguard-monolithic-historical-420bd194691661631b115016cce63c249b33a0d1.zip |
socket: remove redundant check of new4
-rw-r--r-- | src/socket.c | 2 |
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; } |