From 1cb84d63577a8834eb797edc3ab9e458b40ada91 Mon Sep 17 00:00:00 2001 From: Marek Lindner Date: Wed, 20 Jun 2012 17:16:05 +0200 Subject: [PATCH] --- yaml --- r: 311415 b: refs/heads/master c: 5870adc68fc39d81089f1e80efdf64b97e5c37a1 h: refs/heads/master i: 311413: cb63edcb2a544f529ae23e64075501fc60a851e0 311411: 3ff1ef41f1e765fee96ea6db97171ac180521210 311407: 199a75fbbf87b6d4932d5f1c88d1701cc748dc93 v: v3 --- [refs] | 2 +- trunk/net/batman-adv/translation-table.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 3208ef1b0181..1310a10c96d8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a18e08bdcf845efb7344cea146e683df746bbfb4 +refs/heads/master: 5870adc68fc39d81089f1e80efdf64b97e5c37a1 diff --git a/trunk/net/batman-adv/translation-table.c b/trunk/net/batman-adv/translation-table.c index a66c2dcd1088..660c40fe13ea 100644 --- a/trunk/net/batman-adv/translation-table.c +++ b/trunk/net/batman-adv/translation-table.c @@ -2031,10 +2031,10 @@ bool is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, uint8_t *dst) { struct tt_local_entry *tt_local_entry = NULL; struct tt_global_entry *tt_global_entry = NULL; - bool ret = true; + bool ret = false; if (!atomic_read(&bat_priv->ap_isolation)) - return false; + goto out; tt_local_entry = tt_local_hash_find(bat_priv, dst); if (!tt_local_entry) @@ -2044,10 +2044,10 @@ bool is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, uint8_t *dst) if (!tt_global_entry) goto out; - if (_is_ap_isolated(tt_local_entry, tt_global_entry)) + if (!_is_ap_isolated(tt_local_entry, tt_global_entry)) goto out; - ret = false; + ret = true; out: if (tt_global_entry)