1 From db13d361ff6abf57090acfdeb0f5cedd8dd7f02e Mon Sep 17 00:00:00 2001
2 From: Antonio Quartulli <antonio@meshcoding.com>
3 Date: Mon, 27 Jan 2014 12:23:28 +0100
4 Subject: [PATCH 4/5] batman-adv: fix TT-TVLV parsing on OGM reception
6 When accessing a TT-TVLV container in the OGM RX path
7 the variable pointing to the list of changes to apply is
10 This makes the TT component read data at the wrong position
11 in the OGM packet buffer.
13 Fix it by removing the bogus pointer alteration.
15 Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
16 Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
18 translation-table.c | 1 -
19 1 file changed, 1 deletion(-)
21 diff --git a/translation-table.c b/translation-table.c
22 index 3fca99d..45b6155 100644
23 --- a/translation-table.c
24 +++ b/translation-table.c
25 @@ -3204,7 +3204,6 @@ static void batadv_tt_update_orig(struct batadv_priv *bat_priv,
27 spin_lock_bh(&orig_node->tt_lock);
29 - tt_change = (struct batadv_tvlv_tt_change *)tt_buff;
30 batadv_tt_update_changes(bat_priv, orig_node, tt_num_changes,