File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -366,11 +366,22 @@ static int smb1_allocate_rsp_buf(struct ksmbd_work *work)
366366 return 0 ;
367367}
368368
369+ /**
370+ * set_smb1_rsp_status() - set error type in smb response header
371+ * @work: smb work containing smb response header
372+ * @err: error code to set in response
373+ */
374+ static void set_smb1_rsp_status (struct ksmbd_work * work , __le32 err )
375+ {
376+ work -> send_no_response = 1 ;
377+ }
378+
369379static struct smb_version_ops smb1_server_ops = {
370380 .get_cmd_val = get_smb1_cmd_val ,
371381 .init_rsp_hdr = init_smb1_rsp_hdr ,
372382 .allocate_rsp_buf = smb1_allocate_rsp_buf ,
373383 .check_user_session = smb1_check_user_session ,
384+ .set_rsp_status = set_smb1_rsp_status ,
374385};
375386
376387static int smb1_negotiate (struct ksmbd_work * work )
You can’t perform that action at this time.
0 commit comments