X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fbatman-adv%2Funicast.c;h=07d1c1da89dde625a7c42a64ba0f5fa5694b491c;hb=b4fdcb02f1e39c27058a885905bd0277370ba441;hp=32b125fb3d3b65ce07d7b83ad5b574257b0cd250;hpb=e10b87d2b5b4574cdf3a5a19b22ca88b91ba7151;p=mv-sheeva.git diff --git a/net/batman-adv/unicast.c b/net/batman-adv/unicast.c index 32b125fb3d3..07d1c1da89d 100644 --- a/net/batman-adv/unicast.c +++ b/net/batman-adv/unicast.c @@ -299,8 +299,10 @@ int unicast_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv) goto find_router; } - /* check for tt host - increases orig_node refcount */ - orig_node = transtable_search(bat_priv, ethhdr->h_dest); + /* check for tt host - increases orig_node refcount. + * returns NULL in case of AP isolation */ + orig_node = transtable_search(bat_priv, ethhdr->h_source, + ethhdr->h_dest); find_router: /**