Date: Sun, 31 Jan 2010 12:20:29 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r203279 - user/luigi/ipfw3-head/sys/netinet/ipfw Message-ID: <201001311220.o0VCKTP3021693@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: luigi Date: Sun Jan 31 12:20:29 2010 New Revision: 203279 URL: http://svn.freebsd.org/changeset/base/203279 Log: don't panic if passed a NULL pointer to dn_ht_entries() Modified: user/luigi/ipfw3-head/sys/netinet/ipfw/dn_heap.c Modified: user/luigi/ipfw3-head/sys/netinet/ipfw/dn_heap.c ============================================================================== --- user/luigi/ipfw3-head/sys/netinet/ipfw/dn_heap.c Sun Jan 31 12:07:13 2010 (r203278) +++ user/luigi/ipfw3-head/sys/netinet/ipfw/dn_heap.c Sun Jan 31 12:20:29 2010 (r203279) @@ -392,7 +392,7 @@ dn_ht_free(struct dn_ht *ht, int flags) int dn_ht_entries(struct dn_ht *ht) { - return ht->entries; + return ht ? ht->entries : 0; } /* lookup and optionally create or delete element */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001311220.o0VCKTP3021693>