]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Use SMB2_0_INFO_SECURITY instead of the raw "3"
authorVolker Lendecke <vl@samba.org>
Thu, 9 May 2024 07:37:51 +0000 (09:37 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 14 May 2024 22:29:36 +0000 (22:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clisecdesc.c

index d6a266191ab078229da0068f9c40165d70bb4b76..e42ca7bc59234d870d89577c9f0e4c0d2963b930 100644 (file)
@@ -49,16 +49,16 @@ struct tevent_req *cli_query_security_descriptor_send(
 
        if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
                subreq = cli_smb2_query_info_fnum_send(
-                       state,          /* mem_ctx */
-                       ev,             /* ev */
-                       cli,            /* cli */
-                       fnum,           /* fnum */
-                       3,              /* in_info_type */
-                       0,              /* in_info_class */
-                       0xFFFF,         /* in_max_output_length */
-                       NULL,           /* in_input_buffer */
-                       sec_info,       /* in_additional_info */
-                       0);             /* in_flags */
+                       state,                /* mem_ctx */
+                       ev,                   /* ev */
+                       cli,                  /* cli */
+                       fnum,                 /* fnum */
+                       SMB2_0_INFO_SECURITY, /* in_info_type */
+                       0,                    /* in_info_class */
+                       0xFFFF,               /* in_max_output_length */
+                       NULL,                 /* in_input_buffer */
+                       sec_info,             /* in_additional_info */
+                       0);                   /* in_flags */
                if (tevent_req_nomem(subreq, req)) {
                        return tevent_req_post(req, ev);
                }