From: Andrew Tridgell Date: Fri, 6 Jun 2008 17:53:00 +0000 (-0700) Subject: ensure we don't end up with a partially initialised EA structure X-Git-Tag: samba-4.0.0alpha5~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=388f4fde3655146bf57b4c51c59c39f475aa7fe8;p=thirdparty%2Fsamba.git ensure we don't end up with a partially initialised EA structure --- diff --git a/source/libcli/raw/raweas.c b/source/libcli/raw/raweas.c index 07b517ade3f..6317c49fd76 100644 --- a/source/libcli/raw/raweas.c +++ b/source/libcli/raw/raweas.c @@ -131,6 +131,8 @@ uint_t ea_pull_struct(const DATA_BLOB *blob, uint8_t nlen; uint16_t vlen; + ZERO_STRUCTP(ea); + if (blob->length < 6) { return 0; }