[Pkg-gnupg-commit] [gnupg2] 84/102: dirmngr: Print ldap error if bind fails

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Jun 17 00:14:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 5faddcb2927a997e05fb34eb270982096d1fe3a4
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Tue Jun 14 19:20:31 2016 +0200

    dirmngr: Print ldap error if bind fails
    
    * dirmngr/dirmngr_ldap.c (fetch_ldap): Use ldap_err2string on bind
    return.
    
    --
    ldap_simple_bind_s does not set errno.
    
    Signed-off-by: Andre Heinecke <aheinecke at intevation.de>
---
 dirmngr/dirmngr_ldap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dirmngr/dirmngr_ldap.c b/dirmngr/dirmngr_ldap.c
index 6309413..a31b14a 100644
--- a/dirmngr/dirmngr_ldap.c
+++ b/dirmngr/dirmngr_ldap.c
@@ -644,7 +644,7 @@ fetch_ldap (my_opt_t myopt, const char *url, const LDAPURLDesc *ludp)
   if (ret)
     {
       log_error (_("binding to '%s:%d' failed: %s\n"),
-                 host, port, strerror (errno));
+                 host, port, ldap_err2string (ret));
       ldap_unbind (ld);
       return -1;
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list