Fix pointer error in readback control

This commit is contained in:
Luke Howard 2005-07-19 08:39:05 +00:00
parent 2007c4b8b9
commit 6f5dde0734

View file

@ -1550,7 +1550,7 @@ int slap_read_controls(
c.ldctl_oid = oid->bv_val;
c.ldctl_iscritical = 0;
if ( ctrl == NULL ) {
if ( *ctrl == NULL ) {
/* first try */
*ctrl = (LDAPControl *) slap_sl_calloc( 1, sizeof(LDAPControl), NULL );
} else {