summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_flow.c
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-05-19 17:47:11 +0000
committerjdp <jdp@FreeBSD.org>1998-05-19 17:47:11 +0000
commitd796fafffb05725528e8ef3fae36c94378ac2d4d (patch)
tree17338718ea78106db43a8d2b072dba247b0f4301 /sys/netinet/ip_flow.c
parent03f5c9148465bdafdf9987a02bd1303a47b83ee7 (diff)
downloadFreeBSD-src-d796fafffb05725528e8ef3fae36c94378ac2d4d.zip
FreeBSD-src-d796fafffb05725528e8ef3fae36c94378ac2d4d.tar.gz
Fix a typo-bug in ipflow_reap that could cause a NULL pointer
dereference. I have also sent this fix to Matt Thomas.
Diffstat (limited to 'sys/netinet/ip_flow.c')
-rw-r--r--sys/netinet/ip_flow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_flow.c b/sys/netinet/ip_flow.c
index 7d0f715..fd13a99 100644
--- a/sys/netinet/ip_flow.c
+++ b/sys/netinet/ip_flow.c
@@ -33,7 +33,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$
+ * $Id: ip_flow.c,v 1.3 1998/05/19 15:53:47 pb Exp $
*/
#include <sys/param.h>
@@ -227,7 +227,7 @@ ipflow_reap(
* or has had the least uses in the last 1.5
* intervals.
*/
- if (ipf == NULL
+ if (maybe_ipf == NULL
|| ipf->ipf_timer < maybe_ipf->ipf_timer
|| (ipf->ipf_timer == maybe_ipf->ipf_timer
&& ipf->ipf_last_uses + ipf->ipf_uses <
OpenPOWER on IntegriCloud