CVE-2023-34968: mdssvc: introduce an allocating wrapper to sl_pack()
[samba.git] / source3 / rpc_server / mdssvc / srv_mdssvc_nt.c
index 2fec2bb67251b14c64a6ad7be125bfccaf9f2cb9..ae6a73605e190f0328bcee424925043b7ff71cdc 100644 (file)
@@ -223,7 +223,10 @@ void _mdssvc_cmd(struct pipes_struct *p, struct mdssvc_cmd *r)
        /* We currently don't use fragmentation at the mdssvc RPC layer */
        *r->out.fragment = 0;
 
-       ok = mds_dispatch(mds_ctx, &r->in.request_blob, r->out.response_blob);
+       ok = mds_dispatch(mds_ctx,
+                         &r->in.request_blob,
+                         r->out.response_blob,
+                         r->in.max_fragment_size1);
        if (ok) {
                *r->out.unkn9 = 0;
        } else {