summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_vxlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index e700d7507fa..8d2175ab6ae 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.47 2016/09/29 11:37:44 reyk Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.48 2016/09/30 10:22:05 yasuoka Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -635,7 +635,7 @@ vxlan_lookup(struct mbuf *m, struct udphdr *uh, int iphlen,
return (0);
found:
- if (m->m_pkthdr.len < skip + sizeof(struct ether_header) + ETHERMIN)
+ if (m->m_pkthdr.len < skip + sizeof(struct ether_header))
return (EINVAL);
m_adj(m, skip);