Skip to content
Snippets Groups Projects
Commit 22125f3a authored by Michael Cardell Widerkrantz's avatar Michael Cardell Widerkrantz
Browse files

Use simple Read() on opaque cookie

parent 2de49445
No related branches found
No related tags found
No related merge requests found
......@@ -291,7 +291,7 @@ func (ke *KeyExchange) Read() error {
case rec_cookie:
cookie := make([]byte, msg.BodyLen)
err := binary.Read(ke.reader, binary.BigEndian, &cookie)
ke.reader.Read(cookie)
if err != nil {
return errors.New("buffer overrun")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment