On 29/11/17 17:50, Sven Eckelmann wrote:
The batadv_v_gw_is_eligible function already assumes that orig_node
is not
NULL. But batadv_gw_node_get may have failed to find the originator. It
must therefore be checked whether the batadv_gw_node_get failed and not
whether orig_node is NULL to detect this error.
Fixes: 80b2d47be2c7 ("batman-adv: B.A.T.M.A.N. V - implement GW selection
logic")
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)openmesh.com>
Acked-by: Antonio Quartulli <a(a)unstable.cc>
--
Antonio Quartulli