From: Kurt Zeilenga Date: Fri, 22 Sep 2000 22:24:30 +0000 (+0000) Subject: Fix ri initialization bug (ITS#768) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1915 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=318d11e9db6693d274da3f720812c4dc3644b77f;p=openldap Fix ri initialization bug (ITS#768) --- diff --git a/servers/slurpd/ri.c b/servers/slurpd/ri.c index de6d7b5a88..9ea1a22174 100644 --- a/servers/slurpd/ri.c +++ b/servers/slurpd/ri.c @@ -161,7 +161,7 @@ Ri_init( Ri **ri ) { - (*ri) = ( Ri * ) malloc( sizeof( Ri )); + (*ri) = ( Ri * ) calloc( 1, sizeof( Ri )); if ( *ri == NULL ) { return -1; } @@ -172,9 +172,7 @@ Ri_init( /* Initialize private data */ (*ri)->ri_hostname = NULL; - (*ri)->ri_port = 0; (*ri)->ri_ldp = NULL; - (*ri)->ri_bind_method = 0; (*ri)->ri_bind_dn = NULL; (*ri)->ri_password = NULL; (*ri)->ri_authcId = NULL;