diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2008-10-21 09:45:02 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2008-10-21 09:45:02 +0000 |
commit | 420ab20a401ae85dfa5a93db81f6ce7d43e80fe9 (patch) | |
tree | 9df1ea04534e7543fb42607a02bb553bce0915a0 | |
parent | 950471ad34b17d1922f3004388d20f04379e7992 (diff) |
Notes
-rw-r--r-- | sys/netinet6/ip6_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 03f4a5c8c16b..441094bc55a5 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -2814,7 +2814,7 @@ ip6_setpktopts(struct mbuf *control, struct ip6_pktopts *opt, if (control->m_next) return (EINVAL); - for (; control->m_len; control->m_data += CMSG_ALIGN(cm->cmsg_len), + for (; control->m_len > 0; control->m_data += CMSG_ALIGN(cm->cmsg_len), control->m_len -= CMSG_ALIGN(cm->cmsg_len)) { int error; |