mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-15 13:36:55 +02:00
Added missing mutex acquisition
This commit is contained in:
parent
8bdadaae59
commit
04ded4c631
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,9 @@ func (st *CookieChecker) Init(pk NoisePublicKey) {
|
|||
}
|
||||
|
||||
func (st *CookieChecker) CheckMAC1(msg []byte) bool {
|
||||
st.mutex.RLock()
|
||||
defer st.mutex.RUnlock()
|
||||
|
||||
size := len(msg)
|
||||
smac2 := size - blake2s.Size128
|
||||
smac1 := smac2 - blake2s.Size128
|
||||
|
|
Loading…
Add table
Reference in a new issue