mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
gio/gnetworkmonitornetlink.c: Add NULL check on dest before using it
This commit is contained in:
parent
7b0139b9f4
commit
649faee0e6
@ -392,7 +392,7 @@ read_netlink_messages (GNetworkMonitorNetlink *nl,
|
|||||||
if (!nl->priv->dump_networks &&
|
if (!nl->priv->dump_networks &&
|
||||||
rtmsg->rtm_family == AF_INET6 &&
|
rtmsg->rtm_family == AF_INET6 &&
|
||||||
rtmsg->rtm_dst_len != 0 &&
|
rtmsg->rtm_dst_len != 0 &&
|
||||||
UNALIGNED_IN6_IS_ADDR_MC_LINKLOCAL (dest))
|
(dest && UNALIGNED_IN6_IS_ADDR_MC_LINKLOCAL (dest)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (msg->nlmsg_type == RTM_NEWROUTE)
|
if (msg->nlmsg_type == RTM_NEWROUTE)
|
||||||
|
Loading…
Reference in New Issue
Block a user