summaryrefslogtreecommitdiff
path: root/usr.sbin/radiusd/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/radiusd/control.c')
-rw-r--r--usr.sbin/radiusd/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/radiusd/control.c b/usr.sbin/radiusd/control.c
index 7f3a6da6b74..422c5a21508 100644
--- a/usr.sbin/radiusd/control.c
+++ b/usr.sbin/radiusd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.2 2024/11/21 13:10:48 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.3 2024/11/21 13:16:07 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -259,7 +259,7 @@ control_dispatch_imsg(int fd, short event, void *bula)
}
}
if (event & EV_WRITE) {
- if (imsg_write(&c->iev.ibuf) <= 0 && errno != EAGAIN) {
+ if (imsg_write(&c->iev.ibuf) == -1) {
control_close(fd);
return;
}