summaryrefslogtreecommitdiffstatshomepage
path: root/src/receive.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-07 20:59:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-07 20:59:20 +0100
commit07ced7dfde54492e5493d15874c553042cf255e2 (patch)
tree0cfcfe2493be3a3a255447c6ce1d854ce6e6ec36 /src/receive.c
parentchacha20poly1305: it's just as fast to use these more simple unaligned access helpers (diff)
downloadwireguard-monolithic-historical-07ced7dfde54492e5493d15874c553042cf255e2.tar.xz
wireguard-monolithic-historical-07ced7dfde54492e5493d15874c553042cf255e2.zip
send: simplify handshake initiation queueing and introduce lock
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 8a9ff3d..9f5c3d1 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -198,7 +198,7 @@ static void keep_key_fresh(struct wireguard_peer *peer)
if (send) {
peer->sent_lastminute_handshake = true;
- packet_send_handshake_initiation_ratelimited(peer);
+ packet_queue_handshake_initiation(peer);
}
}