aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-07-13 11:54:50 +0200
committerTobias Brunner <tobias@strongswan.org>2017-07-27 13:07:24 +0200
commited926a73dfa2cd5467b0a55f10ca3a52dcb53d54 (patch)
tree683f7e24e068a73d2dc8c556c0619e3b7d7205c0 /src/libcharon
parent6138b8d629dbc1cb47eb9ee8a69c2b22589b0f77 (diff)
downloadstrongswan-ed926a73dfa2cd5467b0a55f10ca3a52dcb53d54.tar.bz2
strongswan-ed926a73dfa2cd5467b0a55f10ca3a52dcb53d54.tar.xz
error-notify: Don't stop sending notifies after removing a disconnected listener
This prevented new listeners from receiving notifies if they joined after another listener disconnected previously, and if they themselves disconnected their old connection would prevent them again from getting notifies.
Diffstat (limited to 'src/libcharon')
-rw-r--r--src/libcharon/plugins/error_notify/error_notify_socket.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcharon/plugins/error_notify/error_notify_socket.c b/src/libcharon/plugins/error_notify/error_notify_socket.c
index 959c4c67d..6b9622ae3 100644
--- a/src/libcharon/plugins/error_notify/error_notify_socket.c
+++ b/src/libcharon/plugins/error_notify/error_notify_socket.c
@@ -94,7 +94,6 @@ METHOD(error_notify_socket_t, notify, void,
DBG1(DBG_CFG, "sending notify failed: %s", strerror(errno));
break;
}
- break;
}
}
enumerator->destroy(enumerator);
@@ -146,7 +145,7 @@ error_notify_socket_t *error_notify_socket_create()
this->service = lib->streams->create_service(lib->streams, uri, 10);
if (!this->service)
{
- DBG1(DBG_CFG, "creating duplicheck socket failed");
+ DBG1(DBG_CFG, "creating error-notify socket failed");
destroy(this);
return NULL;
}