]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
lookip: Properly return from disconnect callback job
authorTobias Brunner <tobias@strongswan.org>
Tue, 18 Feb 2014 10:20:36 +0000 (11:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 18 Feb 2014 10:21:51 +0000 (11:21 +0100)
References #518.

src/libcharon/plugins/lookip/lookip_socket.c

index f19c7c1a95c73fcb4453b5a0c02eb1d3628e801f..4b33e3e31d9f515081f950930bc9eec8c8e41158 100644 (file)
@@ -122,6 +122,7 @@ static job_requeue_t disconnect_async(disconnect_data_t *data)
        }
        enumerator->destroy(enumerator);
        this->mutex->unlock(this->mutex);
+       return JOB_REQUEUE_NONE;
 }
 
 /**
@@ -137,7 +138,8 @@ static void disconnect(private_lookip_socket_t *this, stream_t *stream)
        );
 
        lib->processor->queue_job(lib->processor,
-                       (job_t*)callback_job_create(disconnect_async, data, free, NULL));
+                       (job_t*)callback_job_create((void*)disconnect_async, data,
+                                                                               free, NULL));
 }
 
 /**