kernel-interface: Raise mapping event with a proto/SPI/dst tuple
[strongswan.git] / src / libcharon / processing / jobs / start_action_job.c
index 294ac15..981473b 100644 (file)
@@ -36,7 +36,7 @@ METHOD(job_t, destroy, void,
        free(this);
 }
 
-METHOD(job_t, execute, void,
+METHOD(job_t, execute, job_requeue_t,
        private_start_action_job_t *this)
 {
        enumerator_t *enumerator, *children;
@@ -73,7 +73,7 @@ METHOD(job_t, execute, void,
                                        else
                                        {
                                                charon->traps->install(charon->traps, peer_cfg,
-                                                                                                                         child_cfg);
+                                                                                          child_cfg, 0);
                                        }
                                        break;
                                case ACTION_NONE:
@@ -83,7 +83,7 @@ METHOD(job_t, execute, void,
                children->destroy(children);
        }
        enumerator->destroy(enumerator);
-       destroy(this);
+       return JOB_REQUEUE_NONE;
 }
 
 METHOD(job_t, get_priority, job_priority_t,