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

smb_stack() must return SMB_SUCCESS (0) if messge base is not open.

parent 096d6ce6
No related branches found
No related tags found
No related merge requests found
...@@ -346,7 +346,7 @@ int SMBCALL smb_stack(smb_t* smb, int op) ...@@ -346,7 +346,7 @@ int SMBCALL smb_stack(smb_t* smb, int op)
return(SMB_FAILURE); return(SMB_FAILURE);
} }
if(smb->shd_fp==NULL || smb->sdt_fp==NULL || smb->sid_fp==NULL) if(smb->shd_fp==NULL || smb->sdt_fp==NULL || smb->sid_fp==NULL)
return(SMB_ERR_NOT_OPEN); /* Msg base not open */ return(SMB_SUCCESS); /* Msg base not open, do nothing */
memcpy(&stack[stack_idx],smb,sizeof(smb_t)); memcpy(&stack[stack_idx],smb,sizeof(smb_t));
stack_idx++; stack_idx++;
return(SMB_SUCCESS); return(SMB_SUCCESS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment