d34225f53540b804f8573ebe89a77b9f5d1218ec
[feed/routing.git] / batman-adv / patches / 0004-batman-adv-fix-TT-TVLV-parsing-on-OGM-reception.patch
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
5
6 When accessing a TT-TVLV container in the OGM RX path
7 the variable pointing to the list of changes to apply is
8 altered by mistake.
9
10 This makes the TT component read data at the wrong position
11 in the OGM packet buffer.
12
13 Fix it by removing the bogus pointer alteration.
14
15 Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
16 Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
17 ---
18 translation-table.c | 1 -
19 1 file changed, 1 deletion(-)
20
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,
26
27 spin_lock_bh(&orig_node->tt_lock);
28
29 - tt_change = (struct batadv_tvlv_tt_change *)tt_buff;
30 batadv_tt_update_changes(bat_priv, orig_node, tt_num_changes,
31 ttvn, tt_change);
32
33 --
34 1.8.5.3
35