s3:smb2cli_base: make use of tevent_req_defer_callback()
commit8b4a3681e511adafe0efea3d64bad5135867477c
authorStefan Metzmacher <metze@samba.org>
Sat, 9 Jul 2011 08:12:11 +0000 (9 10:12 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 9 Jul 2011 10:40:28 +0000 (9 12:40 +0200)
tree88159a8f066d9f87d92e8e3cb78c44ba79408b9a
parentfacc110c79b9ec4e3b0509ad6b00e1fd464d3a33
s3:smb2cli_base: make use of tevent_req_defer_callback()

In order to notify requests of transport layer errors,
we need to defer the triggering of the callbacks,
otherwise we may crash, if one of the callbacks
destroys the cli_state.

metze
source3/libsmb/smb2cli_base.c