s3:smbd: always clear filter_subreq in smb2srv_client_mc_negprot_next()
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Aug 2023 13:34:29 +0000 (15:34 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 8 Aug 2023 12:57:29 +0000 (12:57 +0000)
commit50d61e5300250922bf36bb699306f82dff6a00b9
tree532788bcd843f0a56c4937f8c6736f9b7594497c
parent4028d6582907cf582730ceec56872d8584ad02e6
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>
source3/smbd/smbXsrv_client.c