florian@ committed a fix for this the other day:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin/dhcpleased/frontend.c.diff?r1=1.28&r2=1.29

CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2022/04/26 08:50:04

Modified files:
        sbin/dhcpleased: frontend.c

Log message:
Do not send a hostname option when we don't have a hostname.

The minimum length of a hostname is 1 according to RFC 2132.
Found the hard way by Ibrahim Khalifa (ibo AT trukonsult.se) with DHCP
Relay on a Cisco ASA in the installer where we don't have a hostname
yet.
Ibrahim also provided a diff which I simplified a bit.
OK tb

Reply via email to