diff options
author | David Hankins <dhankins@isc.org> | 2007-11-07 20:56:57 +0000 |
---|---|---|
committer | David Hankins <dhankins@isc.org> | 2007-11-07 20:56:57 +0000 |
commit | db093dd2e931c00d6880f357b6ee089e0a41a853 (patch) | |
tree | 9135b7d83fce8b09b93519c79aec62f620187f85 | |
parent | 6ad7394ca50825875020a321d7c69755c945d425 (diff) | |
download | isc-dhcp-db093dd2e931c00d6880f357b6ee089e0a41a853.tar.gz |
Do not report on empty tables. [ISC-Bugs #17274]
-rw-r--r-- | omapip/hash.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/omapip/hash.c b/omapip/hash.c index 20fcae7c..22bd2d2a 100644 --- a/omapip/hash.c +++ b/omapip/hash.c @@ -34,7 +34,7 @@ #ifndef lint static char copyright[] = -"$Id: hash.c,v 1.11.16.2 2007/05/29 17:49:44 each Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n"; +"$Id: hash.c,v 1.11.16.3 2007/11/07 20:56:57 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n"; #endif /* not lint */ #include <omapip/omapip_p.h> @@ -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 (char *) "Invalid hash table."; |