https://gitlab.synchro.net/main/sbbs/-/commit/b97d08c93795dc03cc1f2ac7
Modified Files:
src/syncterm/telnets.c
Log Message:
Fix infinite loop and missing error checks in telnets.c
- Input thread: change drain loop condition from "buffered < rd" to
"bufsz > 0", and add !conn_api.terminate guard. The old condition
compared against the last read size instead of remaining data,
causing an infinite loop once bufsz drained to zero.
- Add missing NULL checks on create_conn_buf() return values in
telnets_connect(), matching all other connection providers.
Co-Authored-By: Claude Opus 4.6 <
noreply@anthropic.com>
--- SBBSecho 3.37-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)