From 658db1404099aba9ed033dceecb1b8a9610dc342 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 25 Aug 2002 12:07:46 +0000
Subject: [PATCH] No longer necessary to UN-lock the SMB header before calling
 smb_addmsghdr().

---
 src/sbbs3/qwktomsg.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/sbbs3/qwktomsg.cpp b/src/sbbs3/qwktomsg.cpp
index 63e56a3c8e..9ec43e444d 100644
--- a/src/sbbs3/qwktomsg.cpp
+++ b/src/sbbs3/qwktomsg.cpp
@@ -437,9 +437,8 @@ bool sbbs_t::qwktomsg(FILE *qwk_fp, char *hdrblk, char fromhub, uint subnum
 		fwrite(tail,taillen,1,smb.sdt_fp);
 		smb_dfield(&msg,TEXT_TAIL,taillen+2); }
 	fflush(smb.sdt_fp);
-	smb_unlocksmbhdr(&smb);
 
-	if((i=smb_addmsghdr(&smb,&msg,storage))!=0)
+	if((i=smb_addmsghdr(&smb,&msg,storage))!=0)	// calls smb_unlocksmbhdr() 
 		errormsg(WHERE,ERR_WRITE,smb.file,i);
 
 	smb_freemsgmem(&msg);
-- 
GitLab