Fix last commit.

This commit is contained in:
Kurt Zeilenga 2007-08-22 19:33:28 +00:00
parent e6699ce023
commit 0025d7fa1f

View File

@ -434,7 +434,7 @@ ldap_create_control(
return LDAP_NO_MEMORY; return LDAP_NO_MEMORY;
} }
ctrl->ldctl_value = NULL; BER_BVZERO(&ctrl->ldctl_value);
if ( ber && ( ber_flatten2( ber, &ctrl->ldctl_value, 1 ) == -1 )) { if ( ber && ( ber_flatten2( ber, &ctrl->ldctl_value, 1 ) == -1 )) {
LDAP_FREE( ctrl ); LDAP_FREE( ctrl );
return LDAP_NO_MEMORY; return LDAP_NO_MEMORY;