summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldap/servers/slapd/tools/ldclt/ldapfct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/tools/ldclt/ldapfct.c b/ldap/servers/slapd/tools/ldclt/ldapfct.c
index b19c6895..4d1ac6a3 100644
--- a/ldap/servers/slapd/tools/ldclt/ldapfct.c
+++ b/ldap/servers/slapd/tools/ldclt/ldapfct.c
@@ -1523,7 +1523,7 @@ buildNewModAttribFile (
{
int nbAttribs; /* Nb of attributes */
LDAPMod attribute; /* To build the attributes */
- struct berval *bv = malloc(sizeof(struct berval *));
+ struct berval *bv = malloc(sizeof(struct berval));
attribute.mod_bvalues = (struct berval **)malloc(2 * sizeof(struct berval *));
if ((bv == NULL) || (attribute.mod_bvalues == NULL)) {