• src/sbbs3/js_socket.cpp

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Thursday, December 18, 2025 18:17:32
    https://gitlab.synchro.net/main/sbbs/-/commit/130d267d095b28c5c829b2d3
    Modified Files:
    src/sbbs3/js_socket.cpp
    Log Message:
    Code clean-up

    - TRUE -> true
    - Eliminate unnecessary free(NULL) checks
    - Fix the potential socket leaks in error handling in socket constructors
    as reported by ChatGPT via Nelgin

    Something I noticed while doing this: functions in this file call call_socket_open_callback() from main.cpp either directly or via a callback from xpms API calls. This only work if the terminal server is running and has been initialized. So ... running other servers in their own process without
    the terminal server (as some sysops do) won't count open sockets accurately. <shrug>
    --- SBBSecho 3.33-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)