summaryrefslogtreecommitdiffhomepage
path: root/src/peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.c b/src/peer.c
index 403c608..ff0ff42 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -41,7 +41,7 @@ struct wireguard_peer *peer_create(struct wireguard_device *wg, const u8 public_
}
timers_init(peer);
cookie_checker_precompute_peer_keys(peer);
- mutex_init(&peer->keypairs.keypair_update_lock);
+ spin_lock_init(&peer->keypairs.keypair_update_lock);
INIT_WORK(&peer->transmit_handshake_work, packet_handshake_send_worker);
rwlock_init(&peer->endpoint_lock);
kref_init(&peer->refcount);