batman-adv: set TT_CLIENT_NEW flag before invoking hash_add()
authorAntonio Quartulli <ordex@autistici.org>
Fri, 6 Jan 2012 20:31:33 +0000 (21:31 +0100)
committerMarek Lindner <lindner_marek@yahoo.de>
Thu, 16 Feb 2012 18:50:21 +0000 (02:50 +0800)
In case of a new tt_local_entry, the TT_CLIENT_NEW flag has to be set before
adding such entry to the hash table. Otherwise, it opens a race condition
in which the entry can be found but the flag has not been set.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

No differences found