diff options
author | Jeremy Allison <jra@samba.org> | 2005-04-01 23:11:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:27 -0500 |
commit | 0557c6cba2a21c9df547fbc8ff4db2899bc1c171 (patch) | |
tree | 991fd0420cd111e03416f66ecbab723d2772f66f /source3/smbd/process.c | |
parent | ab8ffa822a38765301cb6a34dd917eb1c2963249 (diff) | |
download | samba-0557c6cba2a21c9df547fbc8ff4db2899bc1c171.tar.gz samba-0557c6cba2a21c9df547fbc8ff4db2899bc1c171.tar.xz samba-0557c6cba2a21c9df547fbc8ff4db2899bc1c171.zip |
r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global nastyness.
Jeremy.
(This used to be commit d3379fe61bb934082b51a37adac232a96bafcf46)
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r-- | source3/smbd/process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 54837c3b9ae..3043cadfd81 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -211,6 +211,7 @@ BOOL open_was_deferred(uint16 mid) for (pml = smb_sharing_violation_queue; pml; pml = pml->next) { if (SVAL(pml->buf.data,smb_mid) == mid) { + set_saved_error_triple(SMB_SUCCESS, 0, NT_STATUS_OK); return True; } } @@ -859,6 +860,8 @@ static int switch_message(int type,char *inbuf,char *outbuf,int size,int bufsize pid = sys_getpid(); errno = 0; + set_saved_error_triple(0, 0, NT_STATUS_OK); + last_message = type; /* Make sure this is an SMB packet. smb_size contains NetBIOS header so subtract 4 from it. */ |