]> git.sur5r.net Git - openldap/commitdiff
Fix #undef LDAP_CONNECTIONLESS builds
authorKurt Zeilenga <kurt@openldap.org>
Fri, 28 Sep 2001 20:09:49 +0000 (20:09 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 28 Sep 2001 20:09:49 +0000 (20:09 +0000)
libraries/libldap/open.c

index fe69cdf24671369e0c769bce3f8253da308e2106..2010e83026bdb944ef3b666a69930162aef6a37c 100644 (file)
@@ -236,8 +236,10 @@ ldap_initialize( LDAP **ldp, LDAP_CONST char *url )
                        ldap_ld_free(ld, 1, NULL, NULL);
                        return rc;
                }
+#ifdef LDAP_CONNECTIONLESS
                if (ldap_is_ldapc_url(url))
                        ld->ld_options.ldo_valid |= LDAP_UDP_SESSION;
+#endif
        }
 
        *ldp = ld;