Descriptiongo.crypto/ssh: fix panic unmarshalling channelOpenFailureMsg
I introduced this problem in change set 33 when I redefined
RejectionReason from a uint32 to an int. I have added a test
to verify the message can be marshaled correctly.
This was a bit hard to track down as the recover in clientConn
mainLoop would catch the panic and shutdown the connection. We
probably shouldn't be using panic inside marshal/unmarshal, at
least not without a way to let the user know why the recover
logic tripped.
Patch Set 1 #Patch Set 2 : diff -r b24d6db9878e https://code.google.com/p/go.crypto #Patch Set 3 : diff -r b24d6db9878e https://code.google.com/p/go.crypto #Patch Set 4 : diff -r b24d6db9878e https://code.google.com/p/go.crypto #MessagesTotal messages: 6
|