libsmbclient: Fix cli_session_setup_guest_send
commitb5d5b9a40eb13f89a552e29096deed52229c147e
authorVolker Lendecke <vl@samba.org>
Wed, 3 Apr 2013 11:24:53 +0000 (3 13:24 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 3 Apr 2013 16:39:30 +0000 (3 18:39 +0200)
tree0624d79c3e24f1f60fad6d4b37669e36e408fc1b
parented76e65172ba1a21ef21b3c0267ed5ef1aa8aa9b
libsmbclient: Fix cli_session_setup_guest_send

This worked fine so far, but for the wrong reason: We only ever called
this through the sync wrapper. The tevent_req_nterror in the NT_STATUS_OK
case does not call tevent_req_finish. So the tevent_loop_poll did call
into the core send/receive smb code. This is a fix for the case when
smb1cli_req_chain_submit fails for some reason.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Apr  3 18:39:30 CEST 2013 on sn-devel-104
source3/libsmb/cliconnect.c