Skip to content

Conversation

@wutz
Copy link
Contributor

@wutz wutz commented Sep 29, 2019

Close #308

@eikenb
Copy link
Member

eikenb commented Sep 29, 2019

As recvPacket is used by both the client and server I wanted to double check this was OK for the server (as you seemed to be focused on the client). Checking openssh, they use the same defined constant in the server code to check message length.

With that checked and the fact that the tests are happy with it... I think this logic should be fine. And the code is good as well. I think I just talked myself into merging it. :)

@eikenb eikenb merged commit 84e6527 into pkg:master Sep 29, 2019
@eikenb eikenb added the bug label Sep 29, 2019
@eikenb eikenb added this to the v1.11.0 milestone Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SFTP access blocked and eat too many memory when received message too long

2 participants