From: Kurt Zeilenga Date: Sat, 10 Jun 2000 18:30:06 +0000 (+0000) Subject: Import ldaphost NULL fix from devel X-Git-Tag: OPENLDAP_REL_ENG_1_2_12~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d4448cd08884342300c3b2d293b7d7fb677c003;p=thirdparty%2Fopenldap.git Import ldaphost NULL fix from devel --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index d63e887981..124615eeea 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -285,7 +285,7 @@ process_ldif_rec( char *rbuf ) *p++ = '\0'; replicaport = atoi( p ); } - if ( strcasecmp( value, ldaphost ) == 0 && + if ( ldaphost != NULL && strcasecmp( value, ldaphost ) == 0 && replicaport == ldapport ) { use_record = 1; }