summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-02-09 12:18:55 -0800
committerJeremy Allison <jra@samba.org>2011-02-09 22:06:05 +0100
commit4ccb7e5bddd16c2b1cc7c057d8219c271ff5fe8c (patch)
tree04f4e269e383fea1f925318e984850bb685cff88
parentc377b0e71893e2c054a179aa6e3f8c6742be0371 (diff)
downloadsamba-4ccb7e5bddd16c2b1cc7c057d8219c271ff5fe8c.tar.gz
samba-4ccb7e5bddd16c2b1cc7c057d8219c271ff5fe8c.tar.bz2
samba-4ccb7e5bddd16c2b1cc7c057d8219c271ff5fe8c.zip
Oops. Need to test for if(!NT_STATUS_IS_OK(..)) for error.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 9 22:06:05 CET 2011 on sn-devel-104
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 89d137506b..b6a75bb16f 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2756,7 +2756,7 @@ static NTSTATUS open_directory(connection_struct *conn,
}
status = vfs_stat_fsp(fsp);
- if (NT_STATUS_IS_OK(status)) {
+ if (!NT_STATUS_IS_OK(status)) {
fd_close(fsp);
file_free(req, fsp);
return status;