mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix ri initialization bug (ITS#768)
This commit is contained in:
parent
6949ab9d15
commit
318d11e9db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user