From: Douglas Bagnall Date: Sat, 13 Apr 2024 10:39:49 +0000 (+1200) Subject: ldb-samba: ldif_write_schemaInfo() uses correct size X-Git-Tag: tdb-1.4.11~823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae4f095586e50d765f404cd85e9aacf21e84892d;p=thirdparty%2Fsamba.git ldb-samba: ldif_write_schemaInfo() uses correct size repsFromToBlob is much bigger, so this only meant we briefly allocated more than we needed. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10763 Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb-samba/ldif_handlers.c b/lib/ldb-samba/ldif_handlers.c index f77f86fdcc0..a85e6ff3fb9 100644 --- a/lib/ldb-samba/ldif_handlers.c +++ b/lib/ldb-samba/ldif_handlers.c @@ -562,7 +562,7 @@ static int ldif_write_schemaInfo(struct ldb_context *ldb, void *mem_ctx, const struct ldb_val *in, struct ldb_val *out) { return ldif_write_NDR(ldb, mem_ctx, in, out, - sizeof(struct repsFromToBlob), + sizeof(struct schemaInfoBlob), (ndr_pull_flags_fn_t)ndr_pull_schemaInfoBlob, (ndr_print_fn_t)ndr_print_schemaInfoBlob, true);