From: Luke Howard Date: Tue, 19 Jul 2005 08:39:05 +0000 (+0000) Subject: Fix pointer error in readback control X-Git-Tag: OPENLDAP_AC_BP~336 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f5dde073477ebb26f8881bf9b5d32db8afe2643;p=openldap Fix pointer error in readback control --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index e80de78f23..7a0a623607 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -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 {