Fix memory losses, ITS#379

This commit is contained in:
Howard Chu 1999-12-03 00:21:32 +00:00
parent cbc5c8494e
commit ed05ed8025
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ int ldap_int_get_controls(
return LDAP_NO_MEMORY;
}
ctrls[nctrls] = NULL;
*ctrls[nctrls] = NULL;
for( tag = ber_first_element( ber, &len, &opaque );
tag != LBER_ERROR;

View File

@ -75,7 +75,7 @@ int get_ctrls(
}
#endif
ctrls[nctrls] = NULL;
*ctrls[nctrls] = NULL;
for( tag = ber_first_element( ber, &len, &opaque );
tag != LBER_ERROR;