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)
committerJeremy Allison <jra@samba.org>
Fri, 23 Sep 2011 20:20:55 +0000 (22:20 +0200)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Sep 23 22:20:55 CEST 2011 on sn-devel-104

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];