Skip to content
Snippets Groups Projects
Commit eb34a699 authored by rswindell's avatar rswindell
Browse files

No longer necessary to UN-lock the SMB header before calling smb_addmsghdr().

parent 810d367e
No related branches found
No related tags found
No related merge requests found
...@@ -273,8 +273,7 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode) ...@@ -273,8 +273,7 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
smb_dfield(&msg,TEXT_BODY,length); smb_dfield(&msg,TEXT_BODY,length);
smb_unlocksmbhdr(&smb); i=smb_addmsghdr(&smb,&msg,SMB_SELFPACK); // calls smb_unlocksmbhdr()
i=smb_addmsghdr(&smb,&msg,SMB_SELFPACK);
smb_close(&smb); smb_close(&smb);
smb_stack(&smb,SMB_STACK_POP); smb_stack(&smb,SMB_STACK_POP);
......
...@@ -247,8 +247,7 @@ bool sbbs_t::inetmail(char *into, char *subj, long mode) ...@@ -247,8 +247,7 @@ bool sbbs_t::inetmail(char *into, char *subj, long mode)
smb_dfield(&msg,TEXT_BODY,length); smb_dfield(&msg,TEXT_BODY,length);
smb_unlocksmbhdr(&smb); i=smb_addmsghdr(&smb,&msg,SMB_SELFPACK); // calls smb_unlocksmbhdr()
i=smb_addmsghdr(&smb,&msg,SMB_SELFPACK);
smb_close(&smb); smb_close(&smb);
smb_stack(&smb,SMB_STACK_POP); smb_stack(&smb,SMB_STACK_POP);
...@@ -435,8 +434,7 @@ bool sbbs_t::qnetmail(char *into, char *subj, long mode) ...@@ -435,8 +434,7 @@ bool sbbs_t::qnetmail(char *into, char *subj, long mode)
smb_dfield(&msg,TEXT_BODY,length); smb_dfield(&msg,TEXT_BODY,length);
smb_unlocksmbhdr(&smb); i=smb_addmsghdr(&smb,&msg,SMB_SELFPACK); // calls smb_unlocksmbhdr()
i=smb_addmsghdr(&smb,&msg,SMB_SELFPACK);
smb_close(&smb); smb_close(&smb);
smb_stack(&smb,SMB_STACK_POP); smb_stack(&smb,SMB_STACK_POP);
......
...@@ -1213,14 +1213,12 @@ bool sbbs_t::movemsg(smbmsg_t* msg, uint subnum) ...@@ -1213,14 +1213,12 @@ bool sbbs_t::movemsg(smbmsg_t* msg, uint subnum)
msg->hdr.offset=offset; msg->hdr.offset=offset;
msg->hdr.version=smb_ver(); msg->hdr.version=smb_ver();
smb_unlocksmbhdr(&smb);
fseek(smb.sdt_fp,offset,SEEK_SET); fseek(smb.sdt_fp,offset,SEEK_SET);
fwrite(buf,length,1,smb.sdt_fp); fwrite(buf,length,1,smb.sdt_fp);
fflush(smb.sdt_fp); fflush(smb.sdt_fp);
FREE(buf); FREE(buf);
i=smb_addmsghdr(&smb,msg,storage); i=smb_addmsghdr(&smb,msg,storage); // calls smb_unlocksmbhdr()
smb_close(&smb); smb_close(&smb);
smb_stack(&smb,SMB_STACK_POP); smb_stack(&smb,SMB_STACK_POP);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment