From: Gary Williams Date: Wed, 4 Aug 1999 18:26:19 +0000 (+0000) Subject: if urls is NULL, default to ldap:/// X-Git-Tag: TWEB_OL_BASE~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1701d24e143151fd76aadbd0437115b95615d86;p=thirdparty%2Fopenldap.git if urls is NULL, default to ldap:/// --- diff --git a/libraries/liblutil/ntservice.c b/libraries/liblutil/ntservice.c index f287a647cb..bf6d114b05 100644 --- a/libraries/liblutil/ntservice.c +++ b/libraries/liblutil/ntservice.c @@ -326,7 +326,7 @@ void LogSlapdStartedEvent( char *svc, int slap_debug, char *configfile, char *ur Inserts[i] = (char *)malloc( 20 ); itoa( slap_debug, Inserts[i++], 10 ); Inserts[i++] = ldap_pvt_strdup( configfile ); - Inserts[i++] = ldap_pvt_strdup( urls ); + Inserts[i++] = ldap_pvt_strdup( urls ? urls : "ldap:///" ); Inserts[i++] = ldap_pvt_strdup( is_NT_Service ? "svc" : "cmd" ); ReportEvent( hEventLog, EVENTLOG_INFORMATION_TYPE, 0,