From 6af9f50396d3fcd0288bb0478d6cd9140a3530d4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 19 Sep 2024 10:32:58 +0200 Subject: [PATCH] s3:libsmb: make use of dcerpc_binding_get_abstract_syntax() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme (cherry picked from commit 8d666e18f8d254124967e7ac56fc5b171963c02f) --- source3/libsmb/libsmb_xattr.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c index a9023419376..c91970d778f 100644 --- a/source3/libsmb/libsmb_xattr.c +++ b/source3/libsmb/libsmb_xattr.c @@ -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; } -- 2.47.2