smb2_server: let smbd_smb2_flush_send_queue() destroy pending elements on dead connection
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Mar 2021 17:34:06 +0000 (18:34 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 29 Mar 2021 19:36:37 +0000 (19:36 +0000)
commit01b675ab323a73fc0cf25cd0bf706dbc1dde514b
tree3ba452eb6d125b2d4d7155cdddab07253ee0ef09
parent997e9023c0ca94d57d75cd0069f5c6ab1f81be85
smb2_server: let smbd_smb2_flush_send_queue() destroy pending elements on dead connection

Otherwise we'll keep the state of already finished requests arround.

This becomes critical as the next commit will cause us to
let pending requests running and keep the xconn alive for
the lifetime of pending requests, so we would not ever
make progress and deadlock.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_server.c