From: Daniel Stenberg Date: Thu, 25 Oct 2001 08:28:29 +0000 (+0000) Subject: bug report #474568 - X-Git-Tag: curl-7_9_1~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7330618735c5ea179515d03346114c2d4c2b9f2;p=thirdparty%2Fcurl.git bug report #474568 - We need to set "no further data to download" before the Curl_ldap() function returns, as otherwise it'll hang on that assumed transfer. --- diff --git a/lib/ldap.c b/lib/ldap.c index 860d058afb..b89fc857d8 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2000, Daniel Stenberg, , et al. + * Copyright (C) 2001, Daniel Stenberg, , et al. * * In order to be useful for every potential user, curl and libcurl are * dual-licensed under the MPL and the MIT/X-derivate licenses. @@ -47,6 +47,7 @@ #include #include "sendf.h" #include "escape.h" +#include "transfer.h" #define _MPRINTF_REPLACE /* use our functions only */ #include @@ -210,6 +211,9 @@ CURLcode Curl_ldap(struct connectdata *conn) } } DynaClose(); + + /* no data to transfer */ + Curl_Transfer(conn, -1, -1, FALSE, NULL, -1, NULL); return status; }