network/netdev: add a NULL check

... for `netdev->ifname`.
This commit is contained in:
Siteshwar Vashisht
2026-09-10 01:00:04 +09:00
committed by Yu Watanabe
parent 439e6d331d
commit cdead3747f
+1
View File
@@ -464,6 +464,7 @@ int netdev_set_ifindex_internal(NetDev *netdev, int ifindex) {
static int netdev_set_ifindex_impl(NetDev *netdev, const char *name, int ifindex) {
assert(netdev);
assert(netdev->ifname);
assert(name);
assert(ifindex > 0);