From 2ffc4b19ead037708845a9e8be3a2206b0e0d6b5 Mon Sep 17 00:00:00 2001 From: Gary Williams Date: Wed, 16 Jun 1999 19:15:03 +0000 Subject: [PATCH] check addr for NULL before copying --- servers/slapd/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5