Fix a potential nil pointer

This commit is contained in:
Qian Wang 2019-08-07 17:06:48 +01:00
parent e244340885
commit b7549c0664

View File

@ -117,6 +117,7 @@ func (sesh *Session) recvDataFromRemote(data []byte) {
frame, err := sesh.Deobfs(data)
if err != nil {
log.Debugf("Failed to decrypt a frame for session %v: %v", sesh.id, err)
return
}
sesh.streamsM.Lock()