s3: Remove a SMB_ASSERT
authorVolker Lendecke <vl@samba.org>
Thu, 13 Sep 2012 13:51:44 +0000 (15:51 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 29 Sep 2012 15:42:50 +0000 (08:42 -0700)
With the simplified logic this became unnecessary

source3/smbd/open.c

index b4eeeca5955ca451d5f769488b983cd9a705639e..0f34992454bcad73bd06f931488ce336ed5acfb9 100644 (file)
@@ -2487,8 +2487,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
         * We have the share entry *locked*.....
         */
 
-       SMB_ASSERT(lck != NULL);
-
        /* Delete streams if create_disposition requires it */
        if (!new_file_created && clear_ads(create_disposition) &&
            !is_ntfs_stream_smb_fname(smb_fname)) {