git: rtadvd: Fix DNSSL options handling

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Oct 20 18:13:45 PDT 2015


commit 33463a05e41302fe47b8a19887c99c1830f6634d
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Oct 20 20:41:24 2015 +0800

    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

Summary of changes:
 usr.sbin/rtadvd/config.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/33463a05e41302fe47b8a19887c99c1830f6634d


-- 
DragonFly BSD source repository



More information about the Commits mailing list