Fix supervisor segfault due to nil pointer access

This commit is contained in:
Felix Bünemann 2020-03-07 00:57:39 +01:00
parent d50fee4fa0
commit 9057a6493e
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ func NewSupervisor(config *TunnelConfig, u uuid.UUID) (*Supervisor, error) {
logger: config.Logger.WithField("subsystem", "supervisor"),
jwtLock: &sync.RWMutex{},
eventDigestLock: &sync.RWMutex{},
connDigestLock: &sync.RWMutex{},
bufferPool: buffer.NewPool(512 * 1024),
}, nil
}