summaryrefslogtreecommitdiff
path: root/includes/omapip
diff options
context:
space:
mode:
authorShane Kerr <shane@isc.org>2006-07-25 09:59:39 +0000
committerShane Kerr <shane@isc.org>2006-07-25 09:59:39 +0000
commit272ef1bca021d5190c512f674a5f66bfdeffc30e (patch)
treee15fbc521717e2c22c6c552f433085451fc48b0f /includes/omapip
parentdba5803b955ada381d137b946f96cbb3604421ce (diff)
downloadisc-dhcp-272ef1bca021d5190c512f674a5f66bfdeffc30e.tar.gz
Hankin's fixes for hash-related core dumps on HEAD.
Diffstat (limited to 'includes/omapip')
-rw-r--r--includes/omapip/hash.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/omapip/hash.h b/includes/omapip/hash.h
index 15f2398f..2a588496 100644
--- a/includes/omapip/hash.h
+++ b/includes/omapip/hash.h
@@ -64,11 +64,13 @@ typedef int (*hash_comparator_t)(const void *, const void *, size_t);
struct hash_table {
unsigned hash_count;
- struct hash_bucket *buckets [DEFAULT_HASH_SIZE];
hash_reference referencer;
hash_dereference dereferencer;
hash_comparator_t cmp;
unsigned (*do_hash)(const void *, unsigned, unsigned);
+
+ /* This must remain the last entry in this table. */
+ struct hash_bucket *buckets [1];
};
struct named_hash {