]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/controls.c
Fix last commit.
[openldap] / libraries / libldap / controls.c
index 042dfe97a75e53170db1c29685efe1939068d64b..c9847a3b7dfe8c1cd427a5eb4e50a752c41db49f 100644 (file)
@@ -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;