From 780b1eedab36369ef835e45b966f73ede4c7fd12 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 27 Mar 2005 20:44:06 +0000 Subject: r6082: Fix for bugid #2541. Fixes from Guenter Kukkukk Jeremy. (This used to be commit 057e4bf641674473f1ac1e0fbe936b4f2506e013) --- source3/smbd/trans2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 77f879b53d..ad125788a1 100644 --- a/source3/smbd/trans2.c +++ b/source3/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; } -- cgit