aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/threads/kernel_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/threads/kernel_interface.c')
-rw-r--r--src/charon/threads/kernel_interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charon/threads/kernel_interface.c b/src/charon/threads/kernel_interface.c
index 5c220b0c8..b18d9aea2 100644
--- a/src/charon/threads/kernel_interface.c
+++ b/src/charon/threads/kernel_interface.c
@@ -266,14 +266,14 @@ static status_t send_message(private_kernel_interface_t *this,
while (TRUE)
{
- iterator_t *iterator;
+ iterator_t *iterator;
+ struct nlmsghdr *listed_response;
bool found = FALSE;
+
/* search list, break if found */
iterator = this->responses->create_iterator(this->responses, TRUE);
- while (iterator->has_next(iterator))
+ while (iterator->iterate(iterator, (void**)&listed_response))
{
- struct nlmsghdr *listed_response;
- iterator->current(iterator, (void**)&listed_response);
if (listed_response->nlmsg_seq == request->nlmsg_seq)
{
/* matches our request, this is the reply */