Skip to content

Commit

Permalink
proxy: Check complete session id when resuming.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Sep 7, 2020
1 parent bde0301 commit 1e11eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy/proxy_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func (s *ProxyServer) processMessage(client *ProxyClient, data []byte) {
session = s.GetSession(data.Sid)
}

if session == nil {
if session == nil || resumeId != session.PublicId() {
client.SendMessage(message.NewErrorServerMessage(signaling.NoSuchSession))
return
}
Expand Down

0 comments on commit 1e11eac

Please sign in to comment.