network/netdev: add a NULL check

... for `netdev->ifname`.
This commit is contained in:
Siteshwar Vashisht authored and Yu Watanabe committed 2026-09-10 01:00:04 +09:00
1 parent 439e6d331d
commit cdead3747f
1 file changed
+1
+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);