1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s3/torture: add torture_conn_set_sockopt() wrapper

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-10-15 12:32:53 +02:00
parent 5770cdd763
commit 626b4e5724
2 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,7 @@ bool torture_close_connection(struct cli_state *c);
bool torture_ioctl_test(int dummy);
bool torture_chkpath_test(int dummy);
NTSTATUS torture_setup_unix_extensions(struct cli_state *cli);
void torture_conn_set_sockopt(struct cli_state *cli);
/* The following definitions come from torture/utable.c */

View File

@ -452,6 +452,10 @@ bool torture_close_connection(struct cli_state *c)
return ret;
}
void torture_conn_set_sockopt(struct cli_state *cli)
{
smbXcli_conn_set_sockopt(cli->conn, sockops);
}
/* check if the server produced the expected dos or nt error code */
static bool check_both_error(int line, NTSTATUS status,