vpn: Reference of provider not taken
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 3 Feb 2012 11:31:28 +0000 (13:31 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 4 Feb 2012 00:15:35 +0000 (01:15 +0100)
commitbc61a82c641955f0926cf7644c1f9bbc22dcf13f
treeb10007f16dce66fbe8ed4d3a49e53e3b1cc0c891
parentb9290c399cbf0e7e84c39593b2a981dae1a856c9
vpn: Reference of provider not taken

VPN plugin hooks itself into rtnl newlink watch and gives
provider pointer as user data. We must take reference of the
user data pointer as otherwise we might access invalid pointer
if provider is already removed when rtnl watch is triggered.
This seems to be a rare issue but I had one valgrind crash
because of this.
plugins/vpn.c