mirror of https://github.com/wolfSSL/wolfssh.git
Recording the direct forward's socket in the context left the two sites that close it on the target's own EOF or reset holding a stale copy, so the cleanup handler closed a descriptor number the task had since reissued. Every close now retires both the worker's copy and the context's, as the reference example does. - clear appFd where a zero read ends the forward - clear appFd and the worker's own fwdFd on a reset, which that branch never reset - compare appFd against a cast -1 in both places, since WS_SOCKET_T is unsigned on Windows |
||
|---|---|---|
| .. | ||
| CSBENCH | ||
| Espressif | ||
| IAR-EWARM | ||
| Linux-FATFS | ||
| MQX | ||
| Renesas | ||
| STM32CUBE | ||
| mplabx | ||
| winvs | ||
| include.am | ||