summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Dedecker2013-12-01 17:49:36 +0000
committerHans Dedecker2013-12-01 17:49:36 +0000
commit657727622c2ba67f8c5a4795b40458892f420a9c (patch)
tree00c01c2cb68b04b00892ee7dfe40f822e89772e3
parent41cdcf25270bc252ab6c48778e27e76898c999cc (diff)
downloadodhcp6c-657727622c2ba67f8c5a4795b40458892f420a9c.tar.gz
Fix receive rounds end condition
-rw-r--r--src/dhcpv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 7ae908c..e078867 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -469,7 +469,7 @@ int dhcpv6_request(enum dhcpv6_msg type)
}
// Receive rounds
- for (; len < 0 && round_start < round_end;
+ for (; len < 0 && (round_start < round_end);
round_start = odhcp6c_get_milli_time()) {
uint8_t buf[1536], cmsg_buf[CMSG_SPACE(sizeof(struct in6_pktinfo))];
struct iovec iov = {buf, sizeof(buf)};