BBS:      TELESC.NET.BR
Assunto:  src/syncterm/telnets.c
De:       Deuc¨
Data:     Sun, 15 Mar 2026 14:09:13 -0700
-----------------------------------------------------------
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 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]