diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-02-02 23:15:16 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-02-02 23:15:16 +0000 |
commit | 970295c7e2cc266374a576a015f4185dbbbaf8cd (patch) | |
tree | 2d53a0441a58e5589eab0cce19c73cdd715d4eba /usr.sbin/dhcrelay/bpf.c | |
parent | c0687fbf020f2c260fb25351f2a5bf3e3632d7f7 (diff) |
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.
From dhcpd: bpf.c r1.9, dhcpd.h r1.46, packet.c r1.5
ok jca
Diffstat (limited to 'usr.sbin/dhcrelay/bpf.c')
-rw-r--r-- | usr.sbin/dhcrelay/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcrelay/bpf.c b/usr.sbin/dhcrelay/bpf.c index fad2e0ad881..8029857f0e6 100644 --- a/usr.sbin/dhcrelay/bpf.c +++ b/usr.sbin/dhcrelay/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.8 2014/10/25 03:23:49 lteo Exp $ */ +/* $OpenBSD: bpf.c,v 1.9 2016/02/02 23:15:15 sthen Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -377,7 +377,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) { |