summaryrefslogtreecommitdiff
path: root/sys/net/if_gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r--sys/net/if_gif.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 46ab0812087..fbca691a453 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.37 2006/11/16 07:58:43 itojun Exp $ */
+/* $OpenBSD: if_gif.c,v 1.38 2006/12/28 20:06:11 deraadt Exp $ */
/* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */
/*
@@ -165,12 +165,13 @@ gif_start(ifp)
dst.sa_family = AF_LINK;
#endif /* NBRIDGE */
- for (;;) {
+ while (ifp->if_snd.ifq_head) {
s = splnet();
IF_DEQUEUE(&ifp->if_snd, m);
splx(s);
- if (m == NULL) return;
+ if (m == NULL)
+ return;
#if NBRIDGE > 0
/* Sanity check -- interface should be member of a bridge */