diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-24 20:15:31 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-24 20:15:31 +0000 |
commit | 6ee95f70709f1739e11747183676f8497ff26d2a (patch) | |
tree | b3dd5450230e95fccb38ce8ebda326c6be8f002f /sbin/iked/iked.c | |
parent | c00f9fbe684ccfae3f161908c1897c9e823bfa96 (diff) |
unbreak the ikectl log verbose/brief commands.
Diffstat (limited to 'sbin/iked/iked.c')
-rw-r--r-- | sbin/iked/iked.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/iked/iked.c b/sbin/iked/iked.c index 7ea612bed65..970d092fe17 100644 --- a/sbin/iked/iked.c +++ b/sbin/iked/iked.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iked.c,v 1.5 2010/06/10 14:18:26 reyk Exp $ */ +/* $OpenBSD: iked.c,v 1.6 2010/06/24 20:15:30 reyk Exp $ */ /* $vantronix: iked.c,v 1.22 2010/06/02 14:43:30 reyk Exp $ */ /* @@ -342,26 +342,26 @@ parent_dispatch_ca(int fd, struct iked_proc *p, struct imsg *imsg) IMSG_SIZE_CHECK(imsg, &v); memcpy(&v, imsg->data, sizeof(v)); parent_reload(env, v, NULL); - return (0); + break; case IMSG_CTL_COUPLE: case IMSG_CTL_DECOUPLE: case IMSG_CTL_ACTIVE: case IMSG_CTL_PASSIVE: imsg_compose_proc(env, PROC_IKEV1, type, -1, NULL, 0); imsg_compose_proc(env, PROC_IKEV2, type, -1, NULL, 0); - return (0); + break; case IMSG_CTL_RELOAD: if (IMSG_DATA_SIZE(imsg) > 0) str = get_string(imsg->data, IMSG_DATA_SIZE(imsg)); parent_reload(env, 0, str); if (str != NULL) free(str); - return (0); - default: break; + default: + return (-1); } - return (-1); + return (0); } void |