diff options
author | Martin Willi <martin@strongswan.org> | 2007-09-13 07:45:04 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-09-13 07:45:04 +0000 |
commit | b8c7453a8272e592f167e3e462539e6361e56974 (patch) | |
tree | ca81ab83a153cc4e020c6c522f3b4d011c960840 /src/manager/manager.c | |
parent | 28c5feddbda5b5ffa0302eb1801364dc2f83011c (diff) | |
download | strongswan-b8c7453a8272e592f167e3e462539e6361e56974.tar.bz2 strongswan-b8c7453a8272e592f167e3e462539e6361e56974.tar.xz |
manager can query and list IKE_SA status (no layout yet)
Diffstat (limited to 'src/manager/manager.c')
-rw-r--r-- | src/manager/manager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/manager/manager.c b/src/manager/manager.c index dc27f86a6..b09d8d339 100644 --- a/src/manager/manager.c +++ b/src/manager/manager.c @@ -123,9 +123,12 @@ static bool login(private_manager_t *this, char *username, char *password) */ static void logout(private_manager_t *this) { + if (this->gateway) + { + this->gateway->destroy(this->gateway); + this->gateway = NULL; + } this->user = 0; - this->gateway->destroy(this->gateway); - this->gateway = NULL; } /** |