mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +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 &&
|
||||
rtmsg->rtm_family == AF_INET6 &&
|
||||
rtmsg->rtm_dst_len != 0 &&
|
||||
UNALIGNED_IN6_IS_ADDR_MC_LINKLOCAL (dest))
|
||||
(dest && UNALIGNED_IN6_IS_ADDR_MC_LINKLOCAL (dest)))
|
||||
continue;
|
||||
|
||||
if (msg->nlmsg_type == RTM_NEWROUTE)
|
||||
|
Loading…
Reference in New Issue
Block a user