svn commit: r275695 - head/sys/netinet6

Mark Johnston markj at FreeBSD.org
Thu Dec 11 09:05:52 UTC 2014


On Thu, Dec 11, 2014 at 11:44:44AM +0300, Andrey V. Elsukov wrote:
> On 11.12.2014 03:41, Mark Johnston wrote:
> > Author: markj
> > Date: Thu Dec 11 00:41:54 2014
> > New Revision: 275695
> > URL: https://svnweb.freebsd.org/changeset/base/275695
> > 
> > Log:
> >   Fix a bug in r266857: nd6_dad_find() must return NULL if it doesn't find
> >   a matching element in the DAD queue.
> 
> If there was no matching element, TAILQ_FOREACH will stop the loop with
> dp == NULL. If there is bug somewhere, it isn't here.

You're right - sorry for the noise. :(
I somehow managed to convince myself that TAILQ_FOREACH() wouldn't
set dp to NULL at end of a non-empty list. I'll revert the change now.


More information about the svn-src-head mailing list