From: Kurt Zeilenga Date: Wed, 22 Aug 2007 19:33:28 +0000 (+0000) Subject: Fix last commit. X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~133 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0025d7fa1f8959286ae551dc72a1f3237bdb88ca;p=openldap Fix last commit. --- diff --git a/libraries/libldap/controls.c b/libraries/libldap/controls.c index 042dfe97a7..c9847a3b7d 100644 --- a/libraries/libldap/controls.c +++ b/libraries/libldap/controls.c @@ -434,7 +434,7 @@ ldap_create_control( return LDAP_NO_MEMORY; } - ctrl->ldctl_value = NULL; + BER_BVZERO(&ctrl->ldctl_value); if ( ber && ( ber_flatten2( ber, &ctrl->ldctl_value, 1 ) == -1 )) { LDAP_FREE( ctrl ); return LDAP_NO_MEMORY;