From 56c62a67e844458fdb7543702481aceb58056594 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 4 Aug 2017 20:02:51 +0200 Subject: noise: infer initiator or not from handshake state Suggested-by: Mathias Hall-Andersen Signed-off-by: Jason A. Donenfeld --- src/send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/send.c') diff --git a/src/send.c b/src/send.c index a4f2ccc..3a3e544 100644 --- a/src/send.c +++ b/src/send.c @@ -72,7 +72,7 @@ void packet_send_handshake_response(struct wireguard_peer *peer) if (noise_handshake_create_response(&packet, &peer->handshake)) { cookie_add_mac_to_packet(&packet, sizeof(packet), peer); - if (noise_handshake_begin_session(&peer->handshake, &peer->keypairs, false)) { + if (noise_handshake_begin_session(&peer->handshake, &peer->keypairs)) { timers_session_derived(peer); timers_any_authenticated_packet_traversal(peer); socket_send_buffer_to_peer(peer, &packet, sizeof(struct message_handshake_response), HANDSHAKE_DSCP); -- cgit v1.2.3