Remove copying of interface syntax id.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 17 Apr 2008 11:46:13 +0000 (13:46 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 17 Apr 2008 11:46:13 +0000 (13:46 +0200)
(This used to be commit 0012dfbe1fcf17486a24366b939054b5637646e3)

source3/librpc/rpc/dcerpc.c
source3/rpc_parse/parse_rpc.c

index b1ebabb925913d2f43daaab116c69dccc29b020f..654ccb1a15a87d815a12f691a891d9e4ae374d0f 100644 (file)
@@ -118,7 +118,6 @@ _PUBLIC_ NTSTATUS dcerpc_pipe_connect(TALLOC_CTX *parent_ctx, struct dcerpc_pipe
        struct dcerpc_binding *binding;
        NTSTATUS nt_status;
        int idx;
-       RPC_IFACE iface_syntax;
 
        nt_status = dcerpc_parse_binding(p, binding_string, &binding);
 
@@ -152,10 +151,7 @@ _PUBLIC_ NTSTATUS dcerpc_pipe_connect(TALLOC_CTX *parent_ctx, struct dcerpc_pipe
                return nt_status;
        }
 
-       iface_syntax.uuid = table->syntax_id.uuid;
-       iface_syntax.version = table->syntax_id.if_version;
-
-       idx = cli_get_pipe_idx(&iface_syntax);
+       idx = cli_get_pipe_idx(&table->syntax_id);
        if (idx < 0) {
                DEBUG(0, ("Unable to find interface index"));
                talloc_free(p);
index 9eeae176c715ea042923734692446bf65f4c0381..7de6998c9db45fdcdee5ed689b37695e58ae1df8 100644 (file)
@@ -242,7 +242,7 @@ int cli_get_pipe_idx(const RPC_IFACE *syntax)
        int i;
        for (i = 0; pipe_names[i].client_pipe; i++) {
                if (GUID_equal(&pipe_names[i].abstr_syntax.uuid, &syntax->uuid) &&
-                   pipe_names[i].abstr_syntax.version == syntax->version)
+                   pipe_names[i].abstr_syntax.if_version == syntax->if_version)
                        return i;
        }