diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-06-06 04:29:41 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-06-06 04:29:41 +0000 |
commit | d51b463b3fa8915c99857a5cb0a051e2fb957e74 (patch) | |
tree | fdbb07afbc64ea77f88f0411ca5418fdbc6da2b7 /source3/smbd/trans2.c | |
parent | 7d4b53c2aaef07f03b5d4a066ea8b2abb10926f9 (diff) | |
download | samba-d51b463b3fa8915c99857a5cb0a051e2fb957e74.tar.gz samba-d51b463b3fa8915c99857a5cb0a051e2fb957e74.tar.xz samba-d51b463b3fa8915c99857a5cb0a051e2fb957e74.zip |
fixed the layout of the FULL_DIRECTORY_INFO trans2 findfirst level
found by samba4 smbtorture SEARCH test
(This used to be commit 5a5f59cf5eec39394b8aec4aab7f2c347d617255)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 70e41010a1..0aa0087c26 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -729,13 +729,13 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn, SOFF_T(p,0,file_size); SOFF_T(p,8,allocation_size); p += 16; - SIVAL(p,0,nt_extmode); p += 4; + SIVAL(p,0,nt_extmode); p += 4; - SIVAL(p,0,0); p += 4; - len = srvstr_push(outbuf, p, fname, -1, 0); - SIVAL(p, -4, len); - p += len; + SIVAL(p,4,0); /* ea size */ + len = srvstr_push(outbuf, p+8, fname, -1, 0); + SIVAL(p, 0, len); + p += 8 + len; len = PTR_DIFF(p, pdata); len = (len + 3) & ~3; |