summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-12 23:49:26 +0100
committerVolker Lendecke <vl@samba.org>2011-02-13 12:11:53 +0100
commit26051b8aaaf1fd359997dbc71f617ea3e7b71d8a (patch)
tree6f5a70a6f924c527d193176df931af9e6fd21042 /source3/lib
parentf6df16d9d2913db5a0b20ac83cc512c336572877 (diff)
downloadsamba-26051b8aaaf1fd359997dbc71f617ea3e7b71d8a.tar.gz
samba-26051b8aaaf1fd359997dbc71f617ea3e7b71d8a.tar.bz2
samba-26051b8aaaf1fd359997dbc71f617ea3e7b71d8a.zip
s3: Use tlap_simple_recv in tldap_sasl_bind_recv
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/tldap.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index 8a3da3cdbe..1dd380f259 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -20,6 +20,8 @@
#include "includes.h"
#include "tldap.h"
+static int tldap_simple_recv(struct tevent_req *req);
+
bool tevent_req_is_ldap_error(struct tevent_req *req, int *perr)
{
enum tevent_req_state state;
@@ -882,12 +884,7 @@ static void tldap_sasl_bind_done(struct tevent_req *subreq)
int tldap_sasl_bind_recv(struct tevent_req *req)
{
- int err;
-
- if (tevent_req_is_ldap_error(req, &err)) {
- return err;
- }
- return TLDAP_SUCCESS;
+ return tldap_simple_recv(req);
}
int tldap_sasl_bind(struct tldap_context *ld,