s4:torture: Fix segfault in multichannel test
commit49b40a1334353aec6febc82a09a49a7e9588e65c
authorAndreas Schneider <asn@samba.org>
Wed, 30 Nov 2022 17:23:17 +0000 (30 18:23 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 1 Dec 2022 15:03:19 +0000 (1 15:03 +0000)
tree8148c055d6bb2d4f919166d84d945e955d821de2
parent357bafe62584e2ca1bbf0dfaf6f949262daf59dc
s4:torture: Fix segfault in multichannel test

The timer for the timeout_cb() handler was created on a memory context
which doesn't get freed, so the timer was still valid when running
the next test and fired there. It was then writing into random memory
leading to segfaults.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Dec  1 15:03:19 UTC 2022 on sn-devel-184
source4/torture/smb2/multichannel.c