From: Stefan Metzmacher Date: Thu, 19 Sep 2024 08:32:58 +0000 (+0200) Subject: s3:libsmb: make use of dcerpc_binding_get_abstract_syntax() X-Git-Tag: samba-4.21.7~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af9f50396d3fcd0288bb0478d6cd9140a3530d4;p=thirdparty%2Fsamba.git s3:libsmb: make use of dcerpc_binding_get_abstract_syntax() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme (cherry picked from commit 8d666e18f8d254124967e7ac56fc5b171963c02f) --- 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; }