vpn-plugin: Propagate most common errors to callback function
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 10 Dec 2012 10:42:04 +0000 (12:42 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 10 Dec 2012 11:01:08 +0000 (13:01 +0200)
commit477bcfe9d54a71b5e0c93ac1bf38d62db705625d
tree9a141064aa7e803005af1adafbd149f30b34933d
parent14f573d3bef14157f54541e614d8a6bca906b28d
vpn-plugin: Propagate most common errors to callback function

Instead of always setting the create callback function error to
-ECONNREFUSED, create a helper function to detect the two most often emitted
errors.
plugins/vpn.c