diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-12 23:49:26 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-02-13 12:11:53 +0100 |
commit | 26051b8aaaf1fd359997dbc71f617ea3e7b71d8a (patch) | |
tree | 6f5a70a6f924c527d193176df931af9e6fd21042 /source3 | |
parent | f6df16d9d2913db5a0b20ac83cc512c336572877 (diff) | |
download | samba-26051b8aaaf1fd359997dbc71f617ea3e7b71d8a.tar.gz samba-26051b8aaaf1fd359997dbc71f617ea3e7b71d8a.tar.bz2 samba-26051b8aaaf1fd359997dbc71f617ea3e7b71d8a.zip |
s3: Use tlap_simple_recv in tldap_sasl_bind_recv
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/tldap.c | 9 |
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, |