]> git.sur5r.net Git - openldap/commitdiff
ITS#6828 set ld_errno on connect failures
authorHoward Chu <hyc@openldap.org>
Tue, 28 Jun 2011 01:43:31 +0000 (18:43 -0700)
committerHoward Chu <hyc@openldap.org>
Tue, 28 Jun 2011 01:43:31 +0000 (18:43 -0700)
libraries/libldap/open.c

index d627e8323dd3fb82e424c8a39c1dbe279e25665e..b4d22d7be6180b6d878bd44a89131999e769d4ec 100644 (file)
@@ -550,6 +550,7 @@ ldap_int_check_async_open( LDAP *ld, ber_socket_t sd )
                break;
 
        default:
+               ld->ld_errno = LDAP_CONNECT_ERROR;
                return -1;
 
        case -2: