summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldpd/control.c')
-rw-r--r--usr.sbin/ldpd/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/control.c b/usr.sbin/ldpd/control.c
index 6b1518b33df..02574b79dee 100644
--- a/usr.sbin/ldpd/control.c
+++ b/usr.sbin/ldpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.32 2023/03/08 04:43:13 guenther Exp $ */
+/* $OpenBSD: control.c,v 1.33 2024/11/21 13:10:39 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -210,7 +210,7 @@ control_dispatch_imsg(int fd, short event, void *bula)
}
}
if (event & EV_WRITE) {
- if (msgbuf_write(&c->iev.ibuf.w) <= 0 && errno != EAGAIN) {
+ if (imsg_write(&c->iev.ibuf) <= 0 && errno != EAGAIN) {
control_close(fd);
return;
}