commit b8387ce465d350c920f5c07d465c96b9f0ec76e1 from: Simon Ferquel date: Tue Oct 04 08:34:21 2016 UTC Fixes the MSize comparison when negociating msize with server Signed-off-by: Simon Ferquel commit - 5a239064dbe9aba79f7f9796b4aea7b74cef30fc commit + b8387ce465d350c920f5c07d465c96b9f0ec76e1 blob - ee72e88d1e2a28e9e88d02d690de78d79ef3d246 blob + ac301cabe46e1eb22162b85c9d69f235414b3af6 --- version.go +++ version.go @@ -38,7 +38,7 @@ func clientnegotiate(ctx context.Context, ch Channel, return "", fmt.Errorf("unsupported server version: %v", version) } - if int(v.MSize) > ch.MSize() { + if int(v.MSize) < ch.MSize() { // upgrade msize if server differs. ch.SetMSize(int(v.MSize)) }