From: Ralph Boehme Date: Thu, 15 Oct 2020 10:32:53 +0000 (+0200) Subject: s3/torture: add torture_conn_set_sockopt() wrapper X-Git-Tag: samba-4.14.0rc1~330 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=626b4e5724efe6bde49c112dc31a171854edd180;p=thirdparty%2Fsamba.git s3/torture: add torture_conn_set_sockopt() wrapper Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/torture/proto.h b/source3/torture/proto.h index 18e686089ed..aab53605b29 100644 --- a/source3/torture/proto.h +++ b/source3/torture/proto.h @@ -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 */ diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 8ceaf831240..f2ef57b2253 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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,