• src/sbbs3/email.cpp

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Tue Feb 3 17:51:35 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/40f9eb726327da544809ea39
    Modified Files:
    src/sbbs3/email.cpp
    Log Message:
    Fix error message reported when smb_addmsghdr() fails here

    We were closing the message base before calling smb_freemsgdat() in the error condition, which is going to always fail with the error:

    -206 info=smb_locksmbhdr msgbase not open

    Which was then overriding the actual/initial error reported by smb_addmsghdr().

    The fix is to report the error before doing anything else and then call smb_freemsgdat() before closing the message base.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net