BBS:      TELESC.NET.BR
Assunto:  src/sbbs3/email.cpp
De:       Rob Swindell (on Windows
Data:     Tue, 3 Feb 2026 17:51:00 -0800
-----------------------------------------------------------
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.
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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