aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/receive.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-08-04 20:02:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-08-04 20:29:48 +0200
commit3e94472c8268ed0b90b0accedcd6824661be1fc0 (patch)
tree975e416c64b1e7cf16f9b5361b096bbf2cce18f7 /src/receive.c
parenttimers: rename confusingly named functions and variables (diff)
downloadwireguard-monolithic-historical-3e94472c8268ed0b90b0accedcd6824661be1fc0.tar.xz
wireguard-monolithic-historical-3e94472c8268ed0b90b0accedcd6824661be1fc0.zip
noise: infer initiator or not from handshake state
Suggested-by: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Diffstat (limited to 'src/receive.c')
-rw-r--r--src/receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c
index 5a6d975..08b2fe2 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -121,7 +121,7 @@ static void receive_handshake_packet(struct wireguard_device *wg, struct sk_buff
}
update_latest_addr(peer, skb);
net_dbg_ratelimited("%s: Receiving handshake response from peer %Lu (%pISpfsc)\n", wg->dev->name, peer->internal_id, &peer->endpoint.addr);
- if (noise_handshake_begin_session(&peer->handshake, &peer->keypairs, true)) {
+ if (noise_handshake_begin_session(&peer->handshake, &peer->keypairs)) {
timers_session_derived(peer);
timers_handshake_complete(peer);
/* Calling this function will either send any existing packets in the queue