X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fos-local.c;h=5ad819eccf08d9df006f3a645e85cd24b337614a;hb=49d73e12a720cfe052a335d82e67994ff261d21c;hp=6d45b2589a111fba9fb82edd9fff1e1e26482c76;hpb=a56c161bdbc1443808039d0eaf9b84474a243352;p=openldap diff --git a/libraries/libldap/os-local.c b/libraries/libldap/os-local.c index 6d45b2589a..5ad819eccf 100644 --- a/libraries/libldap/os-local.c +++ b/libraries/libldap/os-local.c @@ -33,6 +33,7 @@ #endif /* HAVE_IO_H */ #include "ldap-int.h" +#include "ldap_defaults.h" /* int ldap_int_tblsize = 0; */ @@ -191,7 +192,7 @@ ldap_connect_to_path(LDAP *ld, Sockbuf *sb, const char *path, int async) } if ( path == NULL || path[0] == '\0' ) { - path = "/tmp/.ldap-sock"; + path = LDAPI_SOCK; } else { if ( strlen(path) > (sizeof( server.sun_path ) - 1) ) { ldap_pvt_set_errno( ENAMETOOLONG );