1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

CVE-2023-34968: mdssvc: add missing "kMDSStoreMetaScopes" dict key in slrpc_fetch_properties()

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>
This commit is contained in:
Ralph Boehme 2023-06-17 13:39:55 +02:00 committed by Jule Anger
parent b09e22cfc7
commit 8c95f7ae6b

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