]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import ldaphost NULL fix from devel
authorKurt Zeilenga <kurt@openldap.org>
Sat, 10 Jun 2000 18:30:06 +0000 (18:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 10 Jun 2000 18:30:06 +0000 (18:30 +0000)
clients/tools/ldapmodify.c

index d63e887981df1cdfc979da28e9603cf2ea34d7c9..124615eeea083c32f66a5a71f7b8de619587d44f 100644 (file)
@@ -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;
                }