$OpenBSD: patch-listener_c,v 1.1 2005/05/24 00:00:11 mjc Exp $
--- listener.c.orig	Sat Dec  5 10:24:52 1998
+++ listener.c	Mon May 23 09:50:51 2005
@@ -77,7 +77,8 @@ listener(struct firepack *fp)
     /*
      *  Read packets from the pcap device.
      */
-    for (;packet = GET_RAW(fp->pd, &pc_hdr);)
+    for (;;) {
+      if ((packet = GET_RAW(fp->pd, &pc_hdr)))
     {
         /*
          *  Align the IP header beyond the link header.
@@ -106,6 +107,7 @@ listener(struct firepack *fp)
             default:
                 continue;
         }
+    }
     }
     destroy_listener(fp);
     exit(0);
