pidl: make sure to fill in cli->pipes_struct->hdr_req.opnum in s3 server dispatch...
authorGünther Deschner <gd@samba.org>
Wed, 16 Jun 2010 10:07:43 +0000 (12:07 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 16 Jun 2010 10:15:24 +0000 (12:15 +0200)
Guenther

pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm

index f4dbe18bc1f1a758ae3054582b87c615ab5a8fb8..0fdc89b9d72c8088076fe4c62a7bc672e8c61e82 100644 (file)
@@ -234,6 +234,9 @@ sub ParseDispatchFunction($)
        pidl "\treturn NT_STATUS_INVALID_PARAMETER;";
        pidl "}";
        pidl "";
+       pidl "/* set opnum in fake rpc header */";
+       pidl "cli->pipes_struct->hdr_req.opnum = opnum;";
+       pidl "";
        pidl "switch (opnum)";
        pidl "{";
        indent;