]> git.sur5r.net Git - openldap/commitdiff
Fix last commit.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 22 Aug 2007 19:33:28 +0000 (19:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 22 Aug 2007 19:33:28 +0000 (19:33 +0000)
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;