mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-14 01:35:34 -04:00
Fix potential data race when accessing a validators OID (#640)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
594b43e629
commit
c2ea937fb5
2 changed files with 54 additions and 1 deletions
|
@ -93,6 +93,8 @@ func (u *Updatable) Validate(attDoc []byte, nonce []byte) ([]byte, error) {
|
|||
|
||||
// OID returns the validators Object Identifier.
|
||||
func (u *Updatable) OID() asn1.ObjectIdentifier {
|
||||
u.mux.Lock()
|
||||
defer u.mux.Unlock()
|
||||
return u.Validator.OID()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue