mirror of
https://github.com/cbeuw/Cloak.git
synced 2024-11-17 15:25:30 +00:00
Fix a potential nil pointer
This commit is contained in:
parent
e244340885
commit
b7549c0664
@ -117,6 +117,7 @@ func (sesh *Session) recvDataFromRemote(data []byte) {
|
|||||||
frame, err := sesh.Deobfs(data)
|
frame, err := sesh.Deobfs(data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debugf("Failed to decrypt a frame for session %v: %v", sesh.id, err)
|
log.Debugf("Failed to decrypt a frame for session %v: %v", sesh.id, err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
sesh.streamsM.Lock()
|
sesh.streamsM.Lock()
|
||||||
|
Loading…
Reference in New Issue
Block a user