summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 0866ec7d824..6b71b794734 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.36 2005/08/14 09:55:56 markus Exp $ */
+/* $OpenBSD: if_gre.c,v 1.37 2005/12/10 18:40:29 krw Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -265,8 +265,7 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
inp = mtod(m, struct ip *);
if (m->m_len < inp->ip_hl << 2) {
- m = m_pullup(m,
- sizeof(inp->ip_hl << 2));
+ m = m_pullup(m, inp->ip_hl << 2);
if (m == NULL) {
IF_DROP(&ifp->if_snd);
error = ENOBUFS;