Fix bug 8480 - acl_xattr can free an invalid pointer if no blob is loaded.
[ddiss/samba.git] / source3 / modules / vfs_acl_common.c
index 9a1d13b1185bdef3b8ea838798cb1d4a802b1a4f..2ed3cac2169b59a2ea4fc87ee6348bf649f4d47a 100644 (file)
@@ -253,7 +253,7 @@ static NTSTATUS get_nt_acl_internal(vfs_handle_struct *handle,
                                uint32_t security_info,
                                struct security_descriptor **ppdesc)
 {
-       DATA_BLOB blob;
+       DATA_BLOB blob = data_blob_null;
        NTSTATUS status;
        uint16_t hash_type = XATTR_SD_HASH_TYPE_NONE;
        uint8_t hash[XATTR_SD_HASH_SIZE];