ensure we don't end up with a partially initialised EA structure
[samba.git] / source4 / libcli / raw / raweas.c
index 07b517ade3f24bec4fdfc8622bc13a9b0e6dbac0..6317c49fd764cb92c6109fdc53e81f1adf17e0bf 100644 (file)
@@ -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;
        }