From: Gary Williams Date: Wed, 16 Jun 1999 19:15:03 +0000 (+0000) Subject: check addr for NULL before copying X-Git-Tag: OPENLDAP_REL_ENG_2_BP~291 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ffc4b19ead037708845a9e8be3a2206b0e0d6b5;p=openldap check addr for NULL before copying --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 1844ad3aaf..71b58ea3e0 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -314,7 +314,8 @@ long connection_init( assert( c->c_pending_ops == NULL ); c->c_client_name = ch_strdup( name == NULL ? "" : name ); - c->c_client_addr = ch_strdup( addr ); + if ( addr != NULL ) + c->c_client_addr = ch_strdup( addr ); c->c_n_ops_received = 0; #ifdef LDAP_COUNTERS