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; }