rtadvd: Fix DNSSL options handling
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 20 Oct 2015 12:41:24 +0000 (20:41 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 21 Oct 2015 01:13:21 +0000 (09:13 +0800)
commit33463a05e41302fe47b8a19887c99c1830f6634d
tree2c30f6493603cffd1a93a7663a9e1f1b731d043c
parent3484c4aa8f394b9ac6147d925d119ffb4cd9edb6
rtadvd: Fix DNSSL options handling

The rtadvd program, recently refreshed from FreeBSD, mishandles DNSSL
options, which need to be padded to an eight byte boundary.  The code
correctly calculates the padding length, then fails to increment the
pointer used to write the packet data by this amount.  As a result,
all subsequent option data gets written into the wrong place, making
the rest of the packet junk.

DragonFly-bug: http://bugs.dragonflybsd.org/issues/2847
usr.sbin/rtadvd/config.c