gio/gnetworkmonitornetlink.c: Add NULL check on dest before using it

This commit is contained in:
Colin Walters 2019-08-19 23:10:23 +02:00 committed by Emmanuel Fleury
parent 7b0139b9f4
commit 649faee0e6

View File

@ -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)