From: Ralph Boehme Date: Sat, 11 Sep 2021 10:33:37 +0000 (+0200) Subject: smbd: fix "ea support = no" X-Git-Tag: ldb-2.5.0~690 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=926db374a615e88003c99a476f45981beb30f8cf;p=thirdparty%2Fsamba.git smbd: fix "ea support = no" Introduced by de83946311d8c1f007c236751280e9f101cc3a29. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14829 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Sep 11 21:48:01 UTC 2021 on sn-devel-184 --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index a6bd232f679..cd6b61429c5 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -658,11 +658,12 @@ static unsigned int estimate_ea_size(files_struct *fsp) return 0; } - mem_ctx = talloc_stackframe(); if (!lp_ea_support(SNUM(fsp->conn))) { return 0; } + mem_ctx = talloc_stackframe(); + /* If this is a stream fsp, then we need to instead find the * estimated ea len from the main file, not the stream * (streams cannot have EAs), but the estimate isn't just 0 in