From f32bfe729f255cb364b2778594d1a9290ef7c167 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 28 Jul 2005 09:48:44 +0000 Subject: [PATCH] pblock_add_control() needs to call slapi_dup_control() --- servers/slapd/slapi/slapi_pblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/slapi/slapi_pblock.c b/servers/slapd/slapi/slapi_pblock.c index 077dac1cc8..4d1022a07d 100644 --- a/servers/slapd/slapi/slapi_pblock.c +++ b/servers/slapd/slapi/slapi_pblock.c @@ -762,7 +762,7 @@ pblock_add_control( Slapi_PBlock *pb, LDAPControl *control ) controls = (LDAPControl **)slapi_ch_realloc( (char *)controls, ( i + 2 ) * sizeof(LDAPControl *)); - controls[i] = control; + controls[i] = slapi_dup_control( control ); return pblock_set_default( pb, SLAPI_RESCONTROLS, (void *)controls ); } -- 2.39.5