[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 133/208: ldap: fix MinGW compiler warning
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 133/208: ldap: fix MinGW compiler warning |
Date: |
Wed, 09 Aug 2017 17:35:30 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.
commit b54e0babd74839159b0f0d34a6469f7ca327358c
Author: Marcel Raad <address@hidden>
AuthorDate: Sat Jul 8 17:33:58 2017 +0200
ldap: fix MinGW compiler warning
ldap_bind_s is marked as deprecated in w32api's winldap.h shipping with
the latest original MinGW, resulting in compiler warnings since commit
f0fe66f13c93d3d0af45d9fb1231c9164e0f9dc8. Fix this for the non-SSPI
case by using ldap_simple_bind_s again instead of ldap_bind_s with
LDAP_AUTH_SIMPLE.
Closes https://github.com/curl/curl/pull/1664
---
lib/ldap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/ldap.c b/lib/ldap.c
index 421393f11..435b990ab 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -235,7 +235,6 @@ static int ldap_win_bind(struct connectdata *conn, LDAP
*server,
const char *user, const char *passwd)
{
int rc = LDAP_INVALID_CREDENTIALS;
- ULONG method = LDAP_AUTH_SIMPLE;
PTCHAR inuser = NULL;
PTCHAR inpass = NULL;
@@ -244,7 +243,7 @@ static int ldap_win_bind(struct connectdata *conn, LDAP
*server,
inuser = Curl_convert_UTF8_to_tchar((char *) user);
inpass = Curl_convert_UTF8_to_tchar((char *) passwd);
- rc = ldap_bind_s(server, inuser, inpass, method);
+ rc = ldap_simple_bind_s(server, inuser, inpass);
Curl_unicodefree(inuser);
Curl_unicodefree(inpass);
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 53/208: lib: fix the djgpp build, (continued)
- [GNUnet-SVN] [gnurl] 53/208: lib: fix the djgpp build, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 129/208: smb: rename variable to fix shadowing warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 152/208: tests/server/resolve.c: fix deprecation warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 68/208: curl/system.h: add check for XTENSA for 32bit gcc, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 148/208: sockfilt: suppress conversion warning with explicit cast, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 144/208: travis: install libidn2, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 125/208: valgrind.supp: supress OpenSSL false positive seen on travis, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 167/208: include.d: clarify --include is only for response headers, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 195/208: gssapi: fix memory leak of output token in multi round context, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 193/208: CMake: fix CURL_WERROR for MSVC, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 133/208: ldap: fix MinGW compiler warning,
gnunet <=
- [GNUnet-SVN] [gnurl] 66/208: progress: progress.timespent needs to be us, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 154/208: nss: fix a possible use-after-free in SelectClientCert(), gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 151/208: darwinssl: fix pinnedpubkey build error, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 131/208: curl_setup_once: Remove ERRNO/SET_ERRNO macros, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 132/208: curl-compilers.m4: disable warning spam with Cygwin's clang, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 169/208: http: fix response code parser to avoid integer overflow, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 158/208: timeval: struct curltime is a struct timeval replacement, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 59/208: maketgz: switch to xz instead of lzma, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 113/208: test506: skip if threaded-resolver, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 110/208: http: s/TINY_INITIAL_POST_SIZE/EXPECT_100_THRESHOLD, gnunet, 2017/08/09