diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 0cb230945d..eccdd53baf 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -2155,7 +2155,7 @@ generalizedTimeNormalize( return rc; } - normalized->bv_val = sl_malloc( 16, ctx ); + normalized->bv_val = sl_malloc( sizeof("YYYYmmddHHMMSSZ"), ctx ); if ( normalized->bv_val == NULL ) { return LBER_ERROR_MEMORY; }