diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-06-22 16:18:22 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-06-22 16:18:22 +0200 |
commit | f283520fafa8df21ef8231c3c4f6347516d5729f (patch) | |
tree | 08d8f1eec41bcc60c3e29409cdc57eec2c067f89 /src | |
parent | 61c950d9aa0714c172f7853fccd43ea5ea66406c (diff) | |
download | strongswan-f283520fafa8df21ef8231c3c4f6347516d5729f.tar.bz2 strongswan-f283520fafa8df21ef8231c3c4f6347516d5729f.tar.xz |
Avoid a segmentation fault if opening the Android control socket failed.
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/plugins/android/android_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/android/android_plugin.c b/src/libcharon/plugins/android/android_plugin.c index 8d3a1512e..0e7e9509a 100644 --- a/src/libcharon/plugins/android/android_plugin.c +++ b/src/libcharon/plugins/android/android_plugin.c @@ -64,10 +64,10 @@ METHOD(plugin_t, destroy, void, &this->handler->handler); charon->credentials->remove_set(charon->credentials, &this->creds->set); charon->bus->remove_listener(charon->bus, &this->logger->listener); - this->service->destroy(this->service); this->creds->destroy(this->creds); this->handler->destroy(this->handler); this->logger->destroy(this->logger); + DESTROY_IF(this->service); free(this); } |