]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Use SMB2_0_INFO_SECURITY instead of raw "3"
authorVolker Lendecke <vl@samba.org>
Sat, 25 May 2024 10:41:58 +0000 (12:41 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 4 Jun 2024 07:11:35 +0000 (07:11 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libsmb/clisecdesc.c

index e42ca7bc59234d870d89577c9f0e4c0d2963b930..853e46a0f0a246740c0c91fc74bfeb69b4538430 100644 (file)
@@ -250,14 +250,14 @@ struct tevent_req *cli_set_security_descriptor_send(
 
        if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
                subreq = cli_smb2_set_info_fnum_send(
-                       state,  /* mem_ctx */
-                       ev,     /* ev */
-                       cli,    /* cli */
-                       fnum,   /* fnum */
-                       3,      /* in_info_type */
-                       0,      /* in_file_info_class */
-                       &state->buf, /* in_input_buffer */
-                       sec_info); /* in_additional_info */
+                       state,                /* mem_ctx */
+                       ev,                   /* ev */
+                       cli,                  /* cli */
+                       fnum,                 /* fnum */
+                       SMB2_0_INFO_SECURITY, /* in_info_type */
+                       0,                    /* in_file_info_class */
+                       &state->buf,          /* in_input_buffer */
+                       sec_info);            /* in_additional_info */
                if (tevent_req_nomem(subreq, req)) {
                        return tevent_req_post(req, ev);
                }