Fix bug 8480 - acl_xattr can free an invalid pointer if no blob is loaded.
authorDavid Disseldorp <ddiss@suse.de>
Fri, 23 Sep 2011 18:46:06 +0000 (11:46 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Sep 2011 18:09:42 +0000 (20:09 +0200)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Sep 23 22:20:55 CEST 2011 on sn-devel-104
(cherry picked from commit ca8c25abebb8715176f68be9916217db9a8400dd)

source3/modules/vfs_acl_common.c

index bc06f0b3d226007cd90776ad6136d3d1f66d2637..81c734a535d7f49927571c593356023771eec687 100644 (file)
@@ -252,7 +252,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];