diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-02-03 21:04:20 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-02-03 21:04:20 +0000 |
commit | 72301ba7fd9bf54a0e97bf36d1daff73a584e39a (patch) | |
tree | abcb9cd95642331de5eebe6b8df74630b1d80688 /sbin/dhclient/bpf.c | |
parent | c068c6e6ad0e5e1af7a6eadc85ccd05c0e38f309 (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.
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r-- | sbin/dhclient/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c index 0ba323e4dd6..50f5a7814b5 100644 --- a/sbin/dhclient/bpf.c +++ b/sbin/dhclient/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.24 2012/12/29 14:40:00 krw Exp $ */ +/* $OpenBSD: bpf.c,v 1.25 2013/02/03 21:04:19 krw Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -380,7 +380,7 @@ receive_packet(struct sockaddr_in *from, struct hardware *hfrom) /* Decode the IP and UDP headers... */ offset = decode_udp_ip_header(ifi->rbuf, - ifi->rbuf_offset, from, NULL, hdr.bh_caplen); + ifi->rbuf_offset, from, hdr.bh_caplen); /* If the IP or UDP checksum was bad, skip the packet... */ if (offset < 0) { |