summaryrefslogtreecommitdiff
path: root/lib/ldb-samba
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2021-03-10 16:23:07 +1300
committerJeremy Allison <jra@samba.org>2021-03-30 17:53:30 +0000
commit421486044f6bd17bb66034c6097e23cfc3b6d054 (patch)
tree9bd24e596e5545aced2c3189702133f211aa7b53 /lib/ldb-samba
parent56483a2799430d36dcb9036b8a6f5eece959ba9f (diff)
downloadsamba-421486044f6bd17bb66034c6097e23cfc3b6d054.tar.gz
ldb-samba: avoid VLA in dsdb match dns tombstone
We don't need it (only 64 bytes) and, well, they annoy people. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/ldb-samba')
-rw-r--r--lib/ldb-samba/ldb_matching_rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb-samba/ldb_matching_rules.c b/lib/ldb-samba/ldb_matching_rules.c
index dc381854ab8..2c9d78fea8c 100644
--- a/lib/ldb-samba/ldb_matching_rules.c
+++ b/lib/ldb-samba/ldb_matching_rules.c
@@ -386,7 +386,7 @@ static int dsdb_match_for_dns_to_tombstone_time(struct ldb_context *ldb,
return LDB_ERR_INVALID_ATTRIBUTE_SYNTAX;
} else {
int error = 0;
- char s[value_to_match->length+1];
+ char s[65];
memcpy(s, value_to_match->data, value_to_match->length);
s[value_to_match->length] = 0;