]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb: make use of dcerpc_binding_get_abstract_syntax()
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Sep 2024 08:32:58 +0000 (10:32 +0200)
committerJule Anger <janger@samba.org>
Thu, 12 Jun 2025 11:27:15 +0000 (11:27 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 8d666e18f8d254124967e7ac56fc5b171963c02f)

source3/libsmb/libsmb_xattr.c

index a90234193765c81e134f46d69e95a20abe7c1cb2..c91970d778fa2f1ff151ed9cf8d6490124ceb10c 100644 (file)
@@ -43,7 +43,15 @@ find_lsa_pipe_hnd(struct cli_state *ipc_cli)
        for (pipe_hnd = ipc_cli->pipe_list;
              pipe_hnd;
              pipe_hnd = pipe_hnd->next) {
-               if (ndr_syntax_id_equal(&pipe_hnd->abstract_syntax,
+               struct dcerpc_binding_handle *bh = NULL;
+               const struct dcerpc_binding *bd = NULL;
+               struct ndr_syntax_id syntax;
+
+               bh = pipe_hnd->binding_handle;
+               bd = dcerpc_binding_handle_get_binding(bh);
+               syntax = dcerpc_binding_get_abstract_syntax(bd);
+
+               if (ndr_syntax_id_equal(&syntax,
                                        &ndr_table_lsarpc.syntax_id)) {
                        return pipe_hnd;
                }