Re: [PATCH 1/2] net: ipv6: Fix a possible null-pointer dereference in ip6_xmit()

2019-07-26 Thread Willem de Bruijn
On Fri, Jul 26, 2019 at 4:03 AM Jia-Ju Bai wrote: > > In ip6_xmit(), there is an if statement on line 245 to check whether > np is NULL: > if (np) > > When np is NULL, it is used on line 251: > ip6_autoflowlabel(net, np) > if (!np->autoflowlabel_set) > > Thus, a possible

[PATCH 1/2] net: ipv6: Fix a possible null-pointer dereference in ip6_xmit()

2019-07-26 Thread Jia-Ju Bai
In ip6_xmit(), there is an if statement on line 245 to check whether np is NULL: if (np) When np is NULL, it is used on line 251: ip6_autoflowlabel(net, np) if (!np->autoflowlabel_set) Thus, a possible null-pointer dereference may occur. To fix this bug, np is checked before