fixed the string alignment of the QUERY_EA_SIZE trans2 findfirst level
authorAndrew Tridgell <tridge@samba.org>
Fri, 6 Jun 2003 04:31:48 +0000 (04:31 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 6 Jun 2003 04:31:48 +0000 (04:31 +0000)
(This used to be commit ff5e37ed293b61c2585c66e7366fae478754cca1)

source3/smbd/trans2.c

index 0aa0087c26a60f1e0b84549ecf7bb9a5ea393f12..fa6488362099ee19893f2bafdee82450d059d83e 100644 (file)
@@ -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