]> git.sur5r.net Git - openldap/commitdiff
check addr for NULL before copying
authorGary Williams <gwilliams@openldap.org>
Wed, 16 Jun 1999 19:15:03 +0000 (19:15 +0000)
committerGary Williams <gwilliams@openldap.org>
Wed, 16 Jun 1999 19:15:03 +0000 (19:15 +0000)
servers/slapd/connection.c

index 1844ad3aaf323518bacc2f93f9f3b5c3a935293a..71b58ea3e09ca7a0129026e37554c1be64c446a7 100644 (file)
@@ -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