diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2021-03-10 16:23:07 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-03-30 17:53:30 +0000 |
commit | 421486044f6bd17bb66034c6097e23cfc3b6d054 (patch) | |
tree | 9bd24e596e5545aced2c3189702133f211aa7b53 /lib/ldb-samba | |
parent | 56483a2799430d36dcb9036b8a6f5eece959ba9f (diff) | |
download | samba-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.c | 2 |
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; |