Fix bug 8480 - acl_xattr can free an invalid pointer if no blob is loaded.
authorDavid Disseldorp <ddiss@suse.de>
Wed, 28 Sep 2011 00:46:29 +0000 (17:46 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Sep 2011 18:10:04 +0000 (20:10 +0200)
source3/modules/vfs_acl_common.c

index af4c41d9403329e70acadc39d3338571f1af66f2..ecc889a60d6978911915571f7b32ad176c80a730 100644 (file)
@@ -247,7 +247,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;
        uint8_t hash[XATTR_SD_HASH_SIZE];