From 318d11e9db6693d274da3f720812c4dc3644b77f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 22 Sep 2000 22:24:30 +0000 Subject: [PATCH] Fix ri initialization bug (ITS#768) --- servers/slurpd/ri.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.39.5