STEP01x: pidl: adapt to ABI change of tevent_req_nterror.
authorGünther Deschner <gd@samba.org>
Wed, 22 Jul 2015 16:19:32 +0000 (18:19 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:58:04 +0000 (12:58 +0200)
Guenther

Pair-Programmed-With: Jose A. Rivera <jarrpa@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
pidl/lib/Parse/Pidl/Samba3/CompatServer.pm

index 78a22e4602f6a9d83667ac9bd0d5e6d312d9bb82..2717f38d4a6acd0f5cadaf92c70b4baf1584d67b 100644 (file)
@@ -96,7 +96,7 @@ sub ParseFunctionSend($$)
        pidl "if (p->fault_state) {";
        indent;
        pidl "NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);";
-       pidl "tevent_req_nterror(status);";
+       pidl "tevent_req_nterror(req, status);";
        pidl "return tevent_req_post(req, ev);";
        deindent;
        pidl "}";
@@ -217,6 +217,7 @@ sub Parse($$$)
        pidl_hdr "";
        pidl "#include \"includes.h\"";
        pidl "#include \"ntdomain.h\"";
+       pidl "#include \"lib/util/tevent_ntstatus.h\"";
        pidl "#include \"$header\"";
        pidl_hdr "#include \"$ndr_header\"";
        pidl "";