network/netdev: add a NULL check
... for `netdev->ifname`.
This commit is contained in:
committed by
Yu Watanabe
parent
439e6d331d
commit
cdead3747f
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user