Matthew Dillon wrote:
>
> I found it. The code itself is broken. I missed the lack of parens.
>
> if (m->m_len < sizeof(struct arphdr) &&
> (m = m_pullup(m, sizeof(struct arphdr)) == NULL)) {
> log(LOG_ERR, "arp: runt packet -- m_pullup failed.");
> continue;
>
> Should be:
>
> if (m->m_len < sizeof(struct arphdr) &&
> ((m = m_pullup(m, sizeof(struct arphdr))) == NULL)) {
> log(LOG_ERR, "arp: runt packet -- m_pullup failed.");
> continue;
>
> I'm committing the fix now.
Funny. The parenthesis was the FIRST thing I noticed. I just assumed I
was remembering the priorities wrong...
--
Daniel C. Sobral (8-DCS)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone bind them.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
- Re: possible bug in kernel/if_ether.c Matthew Dillon
- Re: possible bug in kernel/if_ether.c Jim Mercer
- Doh, compiler bug... (was Re: possible bug in k... Matthew Dillon
- Re: Doh, compiler bug... (was Re: possible ... Matthew Dillon
- Re: Doh, compiler bug... (was Re: possi... Nate Williams
- Re: Doh, compiler bug... (was Re: ... Nate Williams
- Re: Doh, compiler bug... (was ... Jim Mercer
- Re: Doh, compiler bug... (was ... Nate Williams
- Re: Doh, compiler bug... (was ... Jim Mercer
- Re: Doh, compiler bug... (was ... Matthew Dillon
- Re: Doh, compiler bug... (was Re: possi... Daniel C. Sobral
- Re: Doh, compiler bug... (was Re: possible ... Thomas M. Sommers
- Re: Doh, compiler bug... (was Re: possible ... Jim Mercer

