diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-01-31 10:55:03 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-01-31 10:55:03 +0000 |
commit | db1b114f57c92bb3db76483a302036f04599f56e (patch) | |
tree | 58a9da9c9f6dfdc232fb45636efa9433b6bbf323 /usr.sbin | |
parent | 158a452510298ecef45098c78ac15d0bf48218b0 (diff) |
fix a bug by updating the bpf packet header for each received frame in
the capture buffer.
to alex 'pukpuk' at gmx.de
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/hostapd/apme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/hostapd/apme.c b/usr.sbin/hostapd/apme.c index 016dc9198f2..b5ff5e6ead4 100644 --- a/usr.sbin/hostapd/apme.c +++ b/usr.sbin/hostapd/apme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apme.c,v 1.10 2005/12/18 17:54:12 reyk Exp $ */ +/* $OpenBSD: apme.c,v 1.11 2006/01/31 10:55:02 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> @@ -155,11 +155,12 @@ hostapd_apme_input(int fd, short sig, void *arg) */ bp = (u_int8_t *)&buf; - bph = (struct bpf_hdr *)bp; ep = bp + len; while (bp < ep) { register u_int caplen, hdrlen; + + bph = (struct bpf_hdr *)bp; caplen = bph->bh_caplen; hdrlen = bph->bh_hdrlen; |