r8608: Fix for bugid #2889. I think the problem is that the top 16 bits of the "serve...
commitc43069f71921be66b980870723e402dec89a8665
authorJeremy Allison <jra@samba.org>
Tue, 19 Jul 2005 17:38:36 +0000 (19 17:38 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 19 Jul 2005 17:38:36 +0000 (19 17:38 +0000)
treea6f233b90a076e1411bc50e82c6b0bb4d5420cfc
parentc40ffe1fb46fc1be85be1364e6334b4ae76cb94d
r8608: Fix for bugid #2889. I think the problem is that the top 16 bits of the "server state" field must be
non-zero. As we're using the 32 bit field as an offset then normally this field
will be zero. W2K3 fills this field with a counter enumerating the number of
SMBsearch calls on this directory - starting at 1. Add back the 1<<31 bit flag
DPTR_MASK to ensure this is non-zero - with better checks on use.
Jeremy.
source/smbd/dir.c
source/smbd/reply.c