From: Luke Howard Date: Thu, 28 Jul 2005 09:48:44 +0000 (+0000) Subject: pblock_add_control() needs to call slapi_dup_control() X-Git-Tag: OPENLDAP_AC_BP~168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f32bfe729f255cb364b2778594d1a9290ef7c167;p=openldap pblock_add_control() needs to call slapi_dup_control() --- 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 ); }