s3:torture: fix the timeout alarm handling on LOCK9
commite18c8ced8e7a872deb118191595425ef6b826bfa
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2019 14:10:58 +0000 (15 16:10 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 9 Sep 2019 14:23:39 +0000 (9 14:23 +0000)
tree40c88dfd954d3c8d6a088663b3de94a8b0663ebf
parent3b788d97f9995e24e4005567f90a925957fb1e00
s3:torture: fix the timeout alarm handling on LOCK9

smbXcli_conn_disconnect(alarm_cli->conn, NT_STATUS_OK)
means existing requests are not finished with an error,
but instead just keep dangling arround.

Pass NT_STATUS_LOCAL_DISCONNECT in order to fail the
cli_lock32() call after getting SIGALARM.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14113

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/torture/torture.c