[Date Prev][Date Next]
(ITS#6813) Error in ldap_int_connect_cbs call from ldap_connect_to_host
Full_Name: Ian Puleston
Submission from: (NULL) (188.8.131.52)
In function ldap_connect_to_host are two calls to ldap_int_connect_cbs. The
first for "#if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )" looks
OK, but the 2nd for the #else case of that is this:
i = ldap_int_connect_cbs( ld, sb, &s, srv, (struct sockaddr *)&sin );
if ( i )
rc = i;
But this is inside a for loop that uses i as a counter for the loop control.
ldap_int_connect_cbs returns an error code so, unless I'm missing something,
setting i to that will break the loop control.