mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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.
This commit is contained in:
parent
bca0c8d253
commit
d733061873
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 2001, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* In order to be useful for every potential user, curl and libcurl are
|
* In order to be useful for every potential user, curl and libcurl are
|
||||||
* dual-licensed under the MPL and the MIT/X-derivate licenses.
|
* dual-licensed under the MPL and the MIT/X-derivate licenses.
|
||||||
@ -47,6 +47,7 @@
|
|||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include "sendf.h"
|
#include "sendf.h"
|
||||||
#include "escape.h"
|
#include "escape.h"
|
||||||
|
#include "transfer.h"
|
||||||
|
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#define _MPRINTF_REPLACE /* use our functions only */
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
@ -210,6 +211,9 @@ CURLcode Curl_ldap(struct connectdata *conn)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
DynaClose();
|
DynaClose();
|
||||||
|
|
||||||
|
/* no data to transfer */
|
||||||
|
Curl_Transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user