From: Jeremy Allison Date: Sun, 27 Mar 2005 20:44:06 +0000 (+0000) Subject: r6082: Fix for bugid #2541. Fixes from Guenter Kukkukk X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5025 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=057e4bf641674473f1ac1e0fbe936b4f2506e013;p=thirdparty%2Fsamba.git r6082: Fix for bugid #2541. Fixes from Guenter Kukkukk Jeremy. --- diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 77f879b53df..ad125788a17 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -2872,6 +2872,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd if (!ea_list || (total_ea_len > data_size)) { talloc_destroy(ea_ctx); data_size = 4; + SIVAL(pdata,0,4); /* EA List Length must be set to 4 if no EA's. */ break; } @@ -2896,6 +2897,7 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd if (!ea_list || (total_ea_len > data_size)) { talloc_destroy(ea_ctx); data_size = 4; + SIVAL(pdata,0,4); /* EA List Length must be set to 4 if no EA's. */ break; }