From 32bf831e25718653c955fea10d4f6b1b8ca7a192 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 6 Jun 2003 04:31:48 +0000 Subject: fixed the string alignment of the QUERY_EA_SIZE trans2 findfirst level (This used to be commit ff5e37ed293b61c2585c66e7366fae478754cca1) --- source3/smbd/trans2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 0aa0087c26..fa64883620 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -649,8 +649,7 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn, SIVAL(p,l2_cbList,0); /* No extended attributes */ p += l2_achName; nameptr = p; - p += align_string(outbuf, p, 0); - len = srvstr_push(outbuf, p, fname, -1, STR_TERMINATE); + len = srvstr_push(outbuf, p, fname, -1, STR_TERMINATE | STR_NOALIGN); if (SVAL(outbuf, smb_flg2) & FLAGS2_UNICODE_STRINGS) SCVAL(nameptr, -1, len-2); else -- cgit