b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH maint] batman-adv: fix TT-TVLV parsing on OGM reception
@ 2014-01-27 11:23 Antonio Quartulli
  2014-01-29  4:44 ` Marek Lindner
  0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2014-01-27 11:23 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

When accessing a TT-TVLV container in the OGM RX path
the variable pointing to the list of changes to apply is
altered by mistake.

This makes the TT component read data at the wrong position
in the OGM packet buffer.

Fix it by removing the bogus pointer alteration.

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
---
 translation-table.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/translation-table.c b/translation-table.c
index 097ca01..05c2a9b 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -3208,7 +3208,6 @@ static void batadv_tt_update_orig(struct batadv_priv *bat_priv,
 
 		spin_lock_bh(&orig_node->tt_lock);
 
-		tt_change = (struct batadv_tvlv_tt_change *)tt_buff;
 		batadv_tt_update_changes(bat_priv, orig_node, tt_num_changes,
 					 ttvn, tt_change);
 
-- 
1.8.5.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH maint] batman-adv: fix TT-TVLV parsing on OGM reception
  2014-01-27 11:23 [B.A.T.M.A.N.] [PATCH maint] batman-adv: fix TT-TVLV parsing on OGM reception Antonio Quartulli
@ 2014-01-29  4:44 ` Marek Lindner
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2014-01-29  4:44 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

On Monday 27 January 2014 12:23:28 Antonio Quartulli wrote:
> When accessing a TT-TVLV container in the OGM RX path
> the variable pointing to the list of changes to apply is
> altered by mistake.
> 
> This makes the TT component read data at the wrong position
> in the OGM packet buffer.
> 
> Fix it by removing the bogus pointer alteration.
> 
> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
> ---
>  translation-table.c | 1 -
>  1 file changed, 1 deletion(-)

Applied in revision db13d36.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-29  4:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-27 11:23 [B.A.T.M.A.N.] [PATCH maint] batman-adv: fix TT-TVLV parsing on OGM reception Antonio Quartulli
2014-01-29  4:44 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).