aboutsummaryrefslogtreecommitdiffstats
path: root/timers.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 18:23:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 18:26:09 +0200
commit2c27ab205c992d3387574aa6d57780744d35d36f (patch)
treee95bb88db16bac5d2050d3db13cd28570f44cd72 /timers.go
parentRewrite timers and related state machines (diff)
downloadwireguard-go-2c27ab205c992d3387574aa6d57780744d35d36f.tar.xz
wireguard-go-2c27ab205c992d3387574aa6d57780744d35d36f.zip
Rework index hashtable
Diffstat (limited to 'timers.go')
-rw-r--r--timers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/timers.go b/timers.go
index 5c72efd..9e633ee 100644
--- a/timers.go
+++ b/timers.go
@@ -108,7 +108,7 @@ func expiredZeroKeyMaterial(peer *Peer) {
hs := &peer.handshake
hs.mutex.Lock()
- kp := &peer.keyPairs
+ kp := &peer.keypairs
kp.mutex.Lock()
if kp.previous != nil {
@@ -125,7 +125,7 @@ func expiredZeroKeyMaterial(peer *Peer) {
}
kp.mutex.Unlock()
- peer.device.indices.Delete(hs.localIndex)
+ peer.device.indexTable.Delete(hs.localIndex)
hs.Clear()
hs.mutex.Unlock()
}