From: Kurt Zeilenga Date: Fri, 28 Sep 2001 20:09:49 +0000 (+0000) Subject: Fix #undef LDAP_CONNECTIONLESS builds X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1039 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d397f6aa2fcc639356f105720b2d68c108097112;p=openldap Fix #undef LDAP_CONNECTIONLESS builds --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index fe69cdf246..2010e83026 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -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;