Commit 4ff4fac
committed
Fix DoDisconnect to signal connection termination
DoDisconnect was returning WS_SUCCESS after receiving
SSH_MSG_DISCONNECT, allowing the session to continue
processing packets. Per RFC 4253 §11.1, no further data
should be accepted after a disconnect message. Add new
WS_DISCONNECT error code and return it from DoDisconnect
so callers tear down the connection immediately.
F-6051 parent 16902b0 commit 4ff4fac
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
494 | 497 | | |
495 | 498 | | |
496 | 499 | | |
| |||
6475 | 6478 | | |
6476 | 6479 | | |
6477 | 6480 | | |
6478 | | - | |
6479 | 6481 | | |
6480 | 6482 | | |
6481 | 6483 | | |
| |||
6524 | 6526 | | |
6525 | 6527 | | |
6526 | 6528 | | |
6527 | | - | |
| 6529 | + | |
| 6530 | + | |
6528 | 6531 | | |
6529 | 6532 | | |
6530 | 6533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | | - | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
0 commit comments