summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:42:50 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:42:50 +0000
commit843a735af0128d99b24d97af1ab2cea78a17cca0 (patch)
tree344f30f08c6b5f608f3f6ba6c0390748314fdab8
parent8a40d1224b99e08385e16451a62564abcf81f42e (diff)
sasyncd is another unexpected imsg user that is in the end not that special
OK tb@
-rw-r--r--usr.sbin/sasyncd/monitor.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/sasyncd/monitor.c b/usr.sbin/sasyncd/monitor.c
index 94642b34f7e..a18abb73204 100644
--- a/usr.sbin/sasyncd/monitor.c
+++ b/usr.sbin/sasyncd/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.23 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: monitor.c,v 1.24 2024/11/21 13:42:49 claudio Exp $ */
/*
* Copyright (c) 2005 Håkan Olsson. All rights reserved.
@@ -484,10 +484,13 @@ m_priv_iked_imsg(u_int cmd)
if (connect(fd, (struct sockaddr *)&sun, sizeof(sun)) == -1) {
log_err("m_priv_iked_imsg: connect");
- goto out;
+ goto out;
}
- imsgbuf_init(&ibuf, fd);
+ if (imsgbuf_init(&ibuf, fd) == -1) {
+ log_err("m_priv_iked_imsg: imsgbuf_init");
+ goto out;
+ }
if (imsg_compose(&ibuf, cmd, 0, 0, -1, NULL, 0) == -1) {
log_err("m_priv_iked_imsg: compose");
goto err;