mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 06:14:40 -05:00
check addr for NULL before copying
This commit is contained in:
parent
17c9a5798a
commit
2ffc4b19ea
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue