Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/ipf/netinet CID 976267: NULL deref check
details: https://anonhg.NetBSD.org/src/rev/e72576e6288b
branches: trunk
changeset: 791678:e72576e6288b
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 27 22:18:06 2013 +0000
description:
CID 976267: NULL deref check
diffstat:
sys/external/bsd/ipf/netinet/fil.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d2cce87ec925 -r e72576e6288b sys/external/bsd/ipf/netinet/fil.c
--- a/sys/external/bsd/ipf/netinet/fil.c Wed Nov 27 22:10:47 2013 +0000
+++ b/sys/external/bsd/ipf/netinet/fil.c Wed Nov 27 22:18:06 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fil.c,v 1.12 2013/09/18 23:34:55 rmind Exp $ */
+/* $NetBSD: fil.c,v 1.13 2013/11/27 22:18:06 christos Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -138,7 +138,7 @@
#if !defined(lint)
#if defined(__NetBSD__)
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.12 2013/09/18 23:34:55 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.13 2013/11/27 22:18:06 christos Exp $");
#else
static const char sccsid[] = "@(#)fil.c 1.36 6/5/96 (C) 1993-2000 Darren Reed";
static const char rcsid[] = "@(#)Id: fil.c,v 1.1.1.2 2012/07/22 13:45:07 darrenr Exp $";
@@ -3120,7 +3120,7 @@
*/
fdp = fin->fin_dif;
if ((fdp != NULL) && (fdp->fd_ptr != NULL) &&
- (fdp->fd_ptr != (void *)-1)) {
+ (fdp->fd_ptr != (void *)-1) && (fin->fin_m != NULL)) {
mc = M_COPY(fin->fin_m);
if (mc != NULL)
ipf_fastroute(mc, &mc, fin, fdp);
Home |
Main Index |
Thread Index |
Old Index