From 3c07b3ea7659bd462ebf2bd946b5fcd10add7757 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sat, 19 Mar 2016 20:30:49 +0300 Subject: ipoe: bug fix --- accel-pppd/ctrl/ipoe/ipoe_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel-pppd/ctrl/ipoe/ipoe_netlink.c b/accel-pppd/ctrl/ipoe/ipoe_netlink.c index 8ed4d91f..05ece5c4 100644 --- a/accel-pppd/ctrl/ipoe/ipoe_netlink.c +++ b/accel-pppd/ctrl/ipoe/ipoe_netlink.c @@ -494,7 +494,7 @@ static void ipoe_up_handler(const struct sockaddr_nl *addr, struct nlmsghdr *h) arph = (struct _arphdr *)(RTA_DATA(tb2[IPOE_ATTR_ARP_HDR])); iph = NULL; eth = NULL; - } else if (tb2[IPOE_ATTR_ETH_HDR] && !tb2[IPOE_ATTR_IP_HDR]) { + } else if (tb2[IPOE_ATTR_ETH_HDR] && tb2[IPOE_ATTR_IP_HDR]) { iph = (struct iphdr *)(RTA_DATA(tb2[IPOE_ATTR_IP_HDR])); eth = (struct ethhdr *)(RTA_DATA(tb2[IPOE_ATTR_ETH_HDR])); arph = NULL; -- cgit v1.2.3