projects
/
dragonfly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
userland - dhclient - Fix possible infinite loop
[dragonfly.git]
/
sbin
/
dhclient
/
bpf.c
diff --git
a/sbin/dhclient/bpf.c
b/sbin/dhclient/bpf.c
index
757f58e
..
85aa3f0
100644
(file)
--- a/
sbin/dhclient/bpf.c
+++ b/
sbin/dhclient/bpf.c
@@
-323,7
+323,7
@@
receive_packet(struct sockaddr_in *from, struct hardware *hfrom)
*/
do {
/* If the buffer is empty, fill it. */
- if (ifi->rbuf_offset == ifi->rbuf_len) {
+ if (ifi->rbuf_offset >= ifi->rbuf_len) {
length = read(ifi->rfdesc, ifi->rbuf, ifi->rbuf_max);
if (length <= 0)
return (length);