CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]    2021/01/16 16:35:47

Modified files:
        net/dhcpcd     : Makefile 
Added files:
        net/dhcpcd/patches: patch-src_route_c patch-src_script_c 

Log message:
net/dhcpcd: fix a regression introduced in 9.4.0

Once every few minutes dhcpcd prints two lines into /var/log/messages:

dhcpcd[89340]: make_env: Undefined error: 0
dhcpcd[89340]: script_runreason: Undefined error: 0

Apparently OpenBSD allows interfaces with the same priority number whereas
NetBSD doesn't.  This would break the ordering used in the routes tree and
RB-tree insertion would fail.  The upstream fix sets errno to make the log
messages more meaningful and fixes RB-tree insertion. It also plugs a leak
in this error path.

Fix from https://roy.marples.name/archives/dhcpcd-discuss/0003426.html

ok sthen

Reply via email to