Commit 27b366d5 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Protect against null pointer.

parent bc164e51
...@@ -1043,6 +1043,8 @@ filter_link(struct nlmsghdr *nh, void *data) ...@@ -1043,6 +1043,8 @@ filter_link(struct nlmsghdr *nh, void *data)
ifflags = info->ifi_flags; ifflags = info->ifi_flags;
ifname = parse_ifname_rta(info, len); ifname = parse_ifname_rta(info, len);
if(ifname == NULL)
return 0;
kdebugf("filter_interfaces: link change on if %s(%d): %s\n", kdebugf("filter_interfaces: link change on if %s(%d): %s\n",
ifname, ifindex, parse_ifflags(ifflags)); ifname, ifindex, parse_ifflags(ifflags));
for (i = 0; i < numnets; i++) { for (i = 0; i < numnets; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment