s4:torture/rpc: make use of dcerpc_binding_set_abstract_syntax() in epmapper.c
authorStefan Metzmacher <metze@samba.org>
Tue, 4 Feb 2014 01:31:10 +0000 (02:31 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Feb 2014 10:54:17 +0000 (11:54 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/torture/rpc/epmapper.c

index 501cf01f5d2fbe7d7afbf5f00c50c09dc240161e..bd8bb47af03af33b6b20881f4cfc54e478607c05 100644 (file)
@@ -45,7 +45,7 @@ static bool test_Insert(struct torture_context *tctx,
                        struct dcerpc_binding_handle *h,
                        struct ndr_syntax_id object,
                        const char *annotation,
-                       struct dcerpc_binding *b)
+                       const struct dcerpc_binding *b)
 {
        struct epm_Insert r;
        NTSTATUS status;
@@ -95,7 +95,7 @@ static bool test_Insert(struct torture_context *tctx,
 static bool test_Delete(struct torture_context *tctx,
                        struct dcerpc_binding_handle *h,
                        const char *annotation,
-                       struct dcerpc_binding *b)
+                       const struct dcerpc_binding *b)
 {
        NTSTATUS status;
        struct epm_Delete r;
@@ -245,7 +245,8 @@ static bool test_Map_full(struct torture_context *tctx,
        torture_assert_ntstatus_ok(tctx,
                                   status,
                                   "Unable to generate dcerpc_binding struct");
-       b->object = obj;
+       status = dcerpc_binding_set_abstract_syntax(b, &obj);
+       torture_assert_ntstatus_ok(tctx, status, "dcerpc_binding_set_abstract_syntax");
 
        ok = test_Insert(tctx, h, obj, annotation, b);
        if (!ok) {