summaryrefslogtreecommitdiff
path: root/sbin/iked/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/iked/proc.c')
-rw-r--r--sbin/iked/proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/iked/proc.c b/sbin/iked/proc.c
index 29c74825fca..3799601a716 100644
--- a/sbin/iked/proc.c
+++ b/sbin/iked/proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.c,v 1.45 2024/11/21 13:06:19 claudio Exp $ */
+/* $OpenBSD: proc.c,v 1.46 2024/11/21 13:10:22 claudio Exp $ */
/*
* Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org>
@@ -627,8 +627,8 @@ proc_dispatch(int fd, short event, void *arg)
}
if (event & EV_WRITE) {
- if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
- fatal("%s: msgbuf_write", __func__);
+ if ((n = imsg_write(ibuf)) == -1 && errno != EAGAIN)
+ fatal("%s: imsg_write", __func__);
if (n == 0) {
/* this pipe is dead, so remove the event handler */
event_del(&iev->ev);