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

smb_addmsghdr() now verifies message base is open before attempting lock.

parent ee4e10fc
No related branches found
No related tags found
No related merge requests found
......@@ -1340,6 +1340,11 @@ int SMBCALL smb_addmsghdr(smb_t* smb, smbmsg_t* msg, int storage)
return(SMB_ERR_HDR_LEN);
}
if(smb->shd_fp==NULL) {
sprintf(smb->last_error,"msgbase not open");
return(SMB_ERR_NOT_OPEN);
}
if(!smb->locked && smb_locksmbhdr(smb))
return(SMB_ERR_LOCK);
if((i=smb_getstatus(smb))!=0) {
......
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