s3:smbd: always clear filter_subreq in smb2srv_client_mc_negprot_next()
commit6caab1022b6e279f6215f890542c8b69ef42460f
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Aug 2023 13:34:29 +0000 (3 15:34 +0200)
committerJule Anger <janger@samba.org>
Fri, 11 Aug 2023 07:53:15 +0000 (11 07:53 +0000)
tree20a3026e47ecbbe0fad571cd2f16a79c397230e7
parentc52d4274277fff5d69adbbba363216feb927474f
s3:smbd: always clear filter_subreq in smb2srv_client_mc_negprot_next()

Commit 5d66d5b84f87267243dcd5223210906ce589af91 introduced a
'verify_again:' target, if we ever hit that, we would leak
the existing filter_subreq.

Moving it just above a possible messaging_filtered_read_send()
will allow us to only clear it if we actually create a new
request. That will help us in the next commits.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 50d61e5300250922bf36bb699306f82dff6a00b9)
source3/smbd/smbXsrv_client.c