]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2023-34968: mdssvc: add missing "kMDSStoreMetaScopes" dict key in slrpc_fetch_pro...
authorRalph Boehme <slow@samba.org>
Sat, 17 Jun 2023 11:39:55 +0000 (13:39 +0200)
committerJule Anger <janger@samba.org>
Fri, 14 Jul 2023 13:16:29 +0000 (15:16 +0200)
We were adding the value, but not the key.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15388

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/mdssvc/mdssvc.c

index 3af0a71a28eac7b9b43b5185477006abd7f5b8d2..72936a992890b5cf585faf2a065ea8738eb33941 100644 (file)
@@ -743,6 +743,10 @@ static bool slrpc_fetch_properties(struct mds_ctx *mds_ctx,
        }
 
        /* kMDSStoreMetaScopes array */
+       result = dalloc_stradd(dict, "kMDSStoreMetaScopes");
+       if (result != 0) {
+               return false;
+       }
        array = dalloc_zero(dict, sl_array_t);
        if (array == NULL) {
                return NULL;