From 26051b8aaaf1fd359997dbc71f617ea3e7b71d8a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 12 Feb 2011 23:49:26 +0100 Subject: s3: Use tlap_simple_recv in tldap_sasl_bind_recv --- source3/lib/tldap.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source3/lib') 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, -- cgit