Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311415
b: refs/heads/master
c: 5870adc
h: refs/heads/master
i:
  311413: cb63edc
  311411: 3ff1ef4
  311407: 199a75f
v: v3
  • Loading branch information
Marek Lindner authored and Antonio Quartulli committed Jun 23, 2012
1 parent f1e9088 commit 1cb84d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a18e08bdcf845efb7344cea146e683df746bbfb4
refs/heads/master: 5870adc68fc39d81089f1e80efdf64b97e5c37a1
8 changes: 4 additions & 4 deletions trunk/net/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 1cb84d6

Please sign in to comment.