summaryrefslogtreecommitdiffstats
path: root/net/dns_resolver
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2014-05-02 01:35:13 +0200
committerAntonio Quartulli <antonio@meshcoding.com>2014-05-15 20:03:17 +0200
commit377fe0f968b30a1a714fab53a908061914f30e26 (patch)
tree96271074ad2b7814ce54019c157a72d7d5649a7e /net/dns_resolver
parentbe181015a189cd141398b761ba4e79d33fe69949 (diff)
downloadblackbird-op-linux-377fe0f968b30a1a714fab53a908061914f30e26.tar.gz
blackbird-op-linux-377fe0f968b30a1a714fab53a908061914f30e26.zip
batman-adv: increase orig refcount when storing ref in gw_node
A pointer to the orig_node representing a bat-gateway is stored in the gw_node->orig_node member, but the refcount for such orig_node is never increased. This leads to memory faults when gw_node->orig_node is accessed and the originator has already been freed. Fix this by increasing the refcount on gw_node creation and decreasing it on gw_node free. Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/dns_resolver')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud