]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't segfault on NULLs.
authorDavid Hankins <dhankins@isc.org>
Wed, 7 Nov 2007 19:42:18 +0000 (19:42 +0000)
committerDavid Hankins <dhankins@isc.org>
Wed, 7 Nov 2007 19:42:18 +0000 (19:42 +0000)
omapip/hash.c

index 6c790079d5e398f6d821e01b77c65f234aeb3bad..ab3f8eddd25d98f22f547c81dfa318be1a6c4bdb 100644 (file)
@@ -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.";