diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-03-26 22:10:32 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-03-26 22:10:32 +1100 |
commit | 7eb7f423d048e869a19d560ab0d1ba3b51b62fa9 (patch) | |
tree | 18cb17db10e10a8d0f27d5a8e48ada2dfc16fae7 /source3/smbd/reply.c | |
parent | 3f37342bc0e7c26b6a61490706fe8cec3e6d491e (diff) | |
parent | 56d74b62126083dd7e2a60d1b48b03e1b1798c90 (diff) | |
download | samba-7eb7f423d048e869a19d560ab0d1ba3b51b62fa9.tar.gz samba-7eb7f423d048e869a19d560ab0d1ba3b51b62fa9.tar.bz2 samba-7eb7f423d048e869a19d560ab0d1ba3b51b62fa9.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 6f19a58178..16eb4a7fd7 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1606,6 +1606,8 @@ void reply_open(struct smb_request *req) START_PROFILE(SMBopen); + SET_STAT_INVALID(sbuf); + if (req->wct < 2) { reply_nterror(req, NT_STATUS_INVALID_PARAMETER); END_PROFILE(SMBopen); @@ -1741,6 +1743,8 @@ void reply_open_and_X(struct smb_request *req) return; } + SET_STAT_INVALID(sbuf); + open_flags = SVAL(req->vwv+2, 0); deny_mode = SVAL(req->vwv+3, 0); smb_attr = SVAL(req->vwv+5, 0); @@ -1945,6 +1949,7 @@ void reply_mknew(struct smb_request *req) START_PROFILE(SMBcreate); ZERO_STRUCT(ft); + SET_STAT_INVALID(sbuf); if (req->wct < 3) { reply_nterror(req, NT_STATUS_INVALID_PARAMETER); @@ -2123,6 +2128,7 @@ void reply_ctemp(struct smb_request *req) return; } + SET_STAT_INVALID(sbuf); SMB_VFS_STAT(conn,fname,&sbuf); /* We should fail if file does not exist. */ |