diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-12-16 03:12:44 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-12-16 03:12:44 +0000 |
commit | c501489004a473932094587f4ddfd72dd192e55c (patch) | |
tree | 9c5e71146496827dcd1b1c6a4660c157680039f9 /sys/netinet6/raw_ip6.c | |
parent | e73e7617200018fa199d34702b760f0ac34c11da (diff) | |
download | FreeBSD-src-c501489004a473932094587f4ddfd72dd192e55c.zip FreeBSD-src-c501489004a473932094587f4ddfd72dd192e55c.tar.gz |
convert more pointer validation checks to checking against NULL
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r-- | sys/netinet6/raw_ip6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index aec1b8e..87e1e5a 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -193,7 +193,7 @@ rip6_input(struct mbuf **mp, int *offp, int proto) continue; } } - if (last) { + if (last != NULL) { struct mbuf *n = m_copy(m, 0, (int)M_COPYALL); #ifdef IPSEC @@ -240,7 +240,7 @@ rip6_input(struct mbuf **mp, int *offp, int proto) INP_RUNLOCK(last); } else #endif /* IPSEC */ - if (last) { + if (last != NULL) { if (last->inp_flags & IN6P_CONTROLOPTS || last->inp_socket->so_options & SO_TIMESTAMP) ip6_savecontrol(last, m, &opts); |