Skip to content

Rekeying doesn't work in certain cases #605

@falemagn

Description

@falemagn

The following command causes the SFTP session to bail out with the error WS_OVERFLOW_E:

sftp -o RekeyLimit=100 user@localhost

Assuming user is a real user on the sftp server, which is listening on localhost at the standard port.

My tests have shown that the issue doesn't manifest itself with the echoserver, however we've implemented a slightly different worker loop than the one being used by the echoserver, and that might be the trigger reason.

Our analysis identified the problem to be here:

ret == WS_REKEYING)) {

Simply OR-ing ret == WS_WANT_READ on that line seems to fix the issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions