virt plugin: Fix segfaults on shutdown
authorPavel Rochnyack <pavel2000@ngs.ru>
Tue, 26 Feb 2019 19:59:17 +0000 (02:59 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Tue, 26 Feb 2019 20:03:57 +0000 (03:03 +0700)
commit534d17bc347478ed775c7b6c62eaeac7d85a1fea
tree10df6107f3c7a442df36f6c235d064848a6f21ad
parentccf9586cbd6b6a2ab0dfe2075992c71561a6910d
virt plugin: Fix segfaults on shutdown

If connection has failed then `lv_init' returns early without initializing `notif_thread'.
This causes segfault due to incorrect `pthread_join()` call on Collectd shutdown.

Closes: #3082
src/virt.c