diff options
author | David Hankins <dhankins@isc.org> | 2007-11-07 19:42:18 +0000 |
---|---|---|
committer | David Hankins <dhankins@isc.org> | 2007-11-07 19:42:18 +0000 |
commit | 8b1cb2268112cb68ce4800b8172228dd748f0a64 (patch) | |
tree | 018fba1d47525faf47e0f1f3723434cfafef26df /omapip/hash.c | |
parent | 290b43b9cbdb9e53a69c3e0ffab1c5e8c5b55979 (diff) | |
download | isc-dhcp-8b1cb2268112cb68ce4800b8172228dd748f0a64.tar.gz |
Don't segfault on NULLs.
Diffstat (limited to 'omapip/hash.c')
-rw-r--r-- | omapip/hash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/omapip/hash.c b/omapip/hash.c index 6c790079..ab3f8edd 100644 --- a/omapip/hash.c +++ b/omapip/hash.c @@ -348,6 +348,9 @@ hash_report(struct hash_table *table) unsigned i; struct hash_bucket *bp; + if (table == NULL) + return (unsigned char *) "No table."; + if (table->hash_count == 0) return (unsigned char *) "Invalid hash table."; |