rpc_server: Fix some uses of tevent_req_nomem
authorVolker Lendecke <vl@samba.org>
Sun, 27 Oct 2013 14:27:45 +0000 (15:27 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 28 Oct 2013 07:26:42 +0000 (08:26 +0100)
commit871e60297fd6823bc9f7479f2375f092091958c2
tree2c9e91e8b5edc0a9938baf10205f0be494b492a6
parent00132ab65c1b577d7dabf665f5e32ecf2620a2ab
rpc_server: Fix some uses of tevent_req_nomem

tevent_req_nomem is to be used in a sequence of async actions where we
have one main request. This is a completely independent loop without one
central tevent_req. tevent_req_nomem is used as a simple way to signal
an out of memory condition to the main request representing the async
sequence. If we don't have such a tevent_req, we need to directly check
for NULL.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_server/rpc_ep_register.c