Index: libraries/libldap/tls.c =================================================================== --- libraries/libldap/tls.c 2013-11-12 17:09:55.284965672 +0100 +++ libraries/libldap/tls.c 2013-11-12 17:10:22.829163042 +0100 @@ -918,10 +918,6 @@ { /* If peer cert was bad, treat as if no cert was given */ if (SSL_get_verify_result(s)) { - /* If we can send an alert, do so */ - if (SSL_version(s) != SSL2_VERSION) { - ssl3_send_alert(s,SSL3_AL_WARNING,SSL3_AD_BAD_CERTIFICATE); - } return NULL; } return SSL_get_peer_certificate(s);