From 6f5dde073477ebb26f8881bf9b5d32db8afe2643 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 19 Jul 2005 08:39:05 +0000 Subject: [PATCH] Fix pointer error in readback control --- servers/slapd/result.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5