summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@cvs.openbsd.org>2015-07-31 15:38:11 +0000
committerRafael Zalamena <rzalamena@cvs.openbsd.org>2015-07-31 15:38:11 +0000
commit7b1ef5a2b2240e27df5b3c31f4f9cd6f39447af5 (patch)
tree2fb07ab8a0239d7ae477a038125d9efd5a5564af /sys/netinet
parentbec0a36572c883be7899fe7010793e5958731a23 (diff)
Removed uninitialized pointer usage, we didn't need to use it there anyway.
Thanks to Patrick Wild for noticing that! ok mpi@, deraadt@.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_ether.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c
index 5f4cb7f2562..e963d521a84 100644
--- a/sys/netinet/ip_ether.c
+++ b/sys/netinet/ip_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ether.c,v 1.77 2015/07/29 00:04:03 rzalamena Exp $ */
+/* $OpenBSD: ip_ether.c,v 1.78 2015/07/31 15:38:10 rzalamena Exp $ */
/*
* The author of this code is Angelos D. Keromytis (kermit@adk.gr)
*
@@ -267,15 +267,6 @@ mplsip_decap(struct mbuf *m, int iphlen)
{
struct gif_softc *sc;
- /*
- * Avoid going through all the code if the interface doesn't have
- * the appropriate flag.
- */
- if ((sc->gif_if.if_xflags & IFXF_MPLS) == 0) {
- m_freem(m);
- return;
- }
-
etheripstat.etherip_ipackets++;
/*