CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2013/02/14 13:39:46

Modified files:
        sbin/dhclient  : bpf.c dhclient.c dhcpd.h options.c 

Log message:
Don't rely on the packet buffer (client->packet) being preserved between
attempts to send DISCOVER or REQUEST packets. Some DHCP servers might
NAK the DISCOVER, or other nefarious packets arrive, between attempts
and overwrite the packet being sent. Create and use another buffer
for packets being sent.

Problem encountered by fgsch@, who noticed that once the DISCOVER was
NAK'ed our dhclient sent a bunch of NAK's back to the server. Like it
thought they were DISCOVER messages.

ok beck@

Reply via email to