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.
--- SBBSecho 3.36-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)