From: Jeremy Allison Date: Wed, 9 Feb 2011 20:18:55 +0000 (-0800) Subject: Oops. Need to test for if(!NT_STATUS_IS_OK(..)) for error. X-Git-Tag: tevent-0.9.11~810 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ccb7e5bddd16c2b1cc7c057d8219c271ff5fe8c;p=thirdparty%2Fsamba.git Oops. Need to test for if(!NT_STATUS_IS_OK(..)) for error. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Feb 9 22:06:05 CET 2011 on sn-devel-104 --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 89d137506b9..b6a75bb16f7 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;