From: Volker Lendecke Date: Sat, 12 Feb 2011 22:49:26 +0000 (+0100) Subject: s3: Use tlap_simple_recv in tldap_sasl_bind_recv X-Git-Tag: tevent-0.9.11~698 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26051b8aaaf1fd359997dbc71f617ea3e7b71d8a;p=thirdparty%2Fsamba.git s3: Use tlap_simple_recv in tldap_sasl_bind_recv --- diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index 8a3da3cdbea..1dd380f2596 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,