special case phandle 0 and return NULL when looking up network interfaces.
authordlg <dlg@openbsd.org>
Mon, 3 Apr 2023 01:34:06 +0000 (01:34 +0000)
committerdlg <dlg@openbsd.org>
Mon, 3 Apr 2023 01:34:06 +0000 (01:34 +0000)
commitf56e72c60ab5845ad8060c2482bebfd92690e838
tree671b849d414fe097f1c424ed6fb6a8a099cce6ea
parent8f2101ca841c55750b84fcc73326e6892b176b43
special case phandle 0 and return NULL when looking up network interfaces.

not all interfaces will have a phandle (ie, it will be 0), so don't
let phandle 0 be used to find any of these.

discussed with miod@
sys/dev/ofw/ofw_misc.c