Skip to content

Commit

Permalink
Fix tinysmb write error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Oct 22, 2024
1 parent 67200c9 commit 865786d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtinysmb/smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ s32 SMB_WriteFile(const char *buffer, size_t size, off_t offset, SMBFILE sfid)
if(ret<0) goto failed;
}

ret = 0;
ret = SMB_ERROR;
if(SMBCheck(SMB_WRITE_ANDX,handle)==SMB_SUCCESS) {
ptr = handle->message.smb;
ret = getUShort(ptr,(SMB_HEADER_SIZE+5));
Expand Down

0 comments on commit 865786d

Please sign in to comment.