Skip to content
Snippets Groups Projects
Commit 2ffc4b19 authored by Gary Williams's avatar Gary Williams
Browse files

check addr for NULL before copying

parent 17c9a579
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment