s4:process_model Fix process_standard and process_onefork not to use
authorAndrew Bartlett <abartlet@samba.org>
Fri, 14 May 2010 11:51:48 +0000 (21:51 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 14 May 2010 13:25:45 +0000 (23:25 +1000)
commitad197f6f15054e398c0bf4f27388a86a384c09ba
tree355976df9639247957f8fa89dd640e6f29ff59ec
parent6f859f58afff10f708bf06d55d1cfab575875627
s4:process_model Fix process_standard and process_onefork not to use
multiple event contexts

It is NEVER valid to free an event context that anybody else may have
a reference to, and never normally valid to have two 'live' at once.
We must instead call tevent_re_initialise() to wipe clean an existing
pointer.

Andrew Bartlett
source4/smbd/process_onefork.c
source4/smbd/process_standard.c