kernel-netlink: Directly handle Netlink messages if thread pool is empty
authorTobias Brunner <tobias@strongswan.org>
Wed, 12 Apr 2017 13:18:45 +0000 (15:18 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 23 May 2017 14:49:39 +0000 (16:49 +0200)
commit7caec9e4a40142803f22ed195704cdd46b097db1
treef9d4a7e9ef889deeb54d29d0aae854beb5fb66d0
parent9b29003cd9e12075070106eb9481954ab34912ca
kernel-netlink: Directly handle Netlink messages if thread pool is empty

During initialization of the plugins the thread pool is not yet
initialized so there is no watcher thread that could handle the queued
Netlink message and the main thread will wait indefinitely for a
response.

Fixes #2199.
src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c