Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > media > main-src > by-pkgid > f2c9a24e570f82c24fd7074143d03478 > files > 21

nss_ldap-253-42.el5.src.rpm

Honor the "port" setting again, by properly detecting when there isn't a port
number given in the URI.
--- nss_ldap/ldap-nss.c	2007-11-02 15:05:29.000000000 -0400
+++ nss_ldap/ldap-nss.c	2007-11-02 15:05:25.000000000 -0400
@@ -1016,7 +1016,7 @@ do_init_session (LDAP ** ld, const char 
   /* we should be looking for the second instance to find the port number */
   if (p != NULL)
     {
-      p = strchr (p, ':');
+      p = strchr (p + 1, ':');
     }
 
 #ifdef HAVE_LDAP_INITIALIZE