summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/bpf.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2013-02-03 21:04:19 +0000
committerkrw <krw@openbsd.org>2013-02-03 21:04:19 +0000
commit9c0483d2e9b698a49d97f2b8b310e2ee2a32ccfb (patch)
tree01f32d1ad5b1ecce6c1a17f4edd0844ca0763758 /usr.sbin/dhcpd/bpf.c
parentSanitize LINK_SPEC for hppa64, making it identical to what we have on amd64 (diff)
downloadwireguard-openbsd-9c0483d2e9b698a49d97f2b8b310e2ee2a32ccfb.tar.xz
wireguard-openbsd-9c0483d2e9b698a49d97f2b8b310e2ee2a32ccfb.zip
Remove unused (a.k.a. always passed NULL) parameter 'data' from
decode_udp_ip_header() and the useless check of it. Part of original diff from pelikan about udp length errors.
Diffstat (limited to 'usr.sbin/dhcpd/bpf.c')
-rw-r--r--usr.sbin/dhcpd/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcpd/bpf.c b/usr.sbin/dhcpd/bpf.c
index efa3fcff140..a17147d03e3 100644
--- a/usr.sbin/dhcpd/bpf.c
+++ b/usr.sbin/dhcpd/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.8 2009/12/14 22:12:14 mpf Exp $ */
+/* $OpenBSD: bpf.c,v 1.9 2013/02/03 21:04:19 krw Exp $ */
/* BPF socket interface code, originally contributed by Archie Cobbs. */
@@ -341,7 +341,7 @@ receive_packet(struct interface_info *interface, unsigned char *buf,
/* Decode the IP and UDP headers... */
offset = decode_udp_ip_header(interface, interface->rbuf,
- interface->rbuf_offset, from, NULL, hdr.bh_caplen);
+ interface->rbuf_offset, from, hdr.bh_caplen);
/* If the IP or UDP checksum was bad, skip the packet... */
if (offset < 0) {