winbind: protect a pending wb_child_request against a talloc_free()
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Feb 2018 14:05:57 +0000 (15:05 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 23 Feb 2018 03:09:18 +0000 (04:09 +0100)
commit43af57d8728883c5ddbe169e1483181246fb68a8
tree796e4d4121efcf098f3d4a1a8dfbdd338e727351
parentd29dda141e08af42c535e8718226f95c45aadab8
winbind: protect a pending wb_child_request against a talloc_free()

If the (winbind) client gave up we call TALLOC_FREE(state->mem_ctx)
in remove_client(). This triggers a recursive talloc_free() for all
in flight requests.

In order to maintain the winbindd parent-child protocol, we need
to keep the orphaned wb_simple_trans request until the parent
got the response from the child.

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

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