batman-adv: use orig_hash_find() instead of get_orig_node() in TT code
authorAntonio Quartulli <ordex@autistici.org>
Wed, 12 Oct 2011 12:54:50 +0000 (14:54 +0200)
committerSven Eckelmann <sven@narfation.org>
Sun, 20 Nov 2011 12:08:32 +0000 (13:08 +0100)
commiteb7e2a1e20488f91c7007caa080b83b8e4222572
tree8b3f1f04f96551a049edb3cfc3e299822b7c1bb4
parentbe7af5cf9cae5e088a9783ccd6e47469ce9d43f4
batman-adv: use orig_hash_find() instead of get_orig_node() in TT code

get_orig_node() tries to retrieve an orig_node object based on a mac address
and creates it if not present. This is not the wanted behaviour in the
translation table code as we don't want to create new orig_code objects but
expect a NULL pointer if the object does not exist.

Reported-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/translation-table.c