From c920a736d2c1ec1bc99322d5576ae084602f0870 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 1 Sep 2024 20:24:42 +0000 Subject: [PATCH] dhcpleased: fix a sizeof for IMSG_REQUEST_REBOOT. "fatal in engine: engine_dispatch_frontend: invalid IMSG_REQUEST_REBOOT" reported by qwer.ty tuta io ok florian kn --- sbin/dhcpleased/control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/dhcpleased/control.c b/sbin/dhcpleased/control.c index b6043f58088..87bd77578bb 100644 --- a/sbin/dhcpleased/control.c +++ b/sbin/dhcpleased/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.5 2024/08/25 09:53:53 florian Exp $ */ +/* $OpenBSD: control.c,v 1.6 2024/09/01 20:24:42 tb Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -291,7 +291,7 @@ control_dispatch_imsg(int fd, short event, void *bula) c->iev.ibuf.pid = pid; frontend_imsg_compose_engine(IMSG_REQUEST_REBOOT, 0, - pid, &if_index, sizeof(&if_index)); + pid, &if_index, sizeof(if_index)); break; default: log_debug("%s: error handling imsg %d", __func__, type); -- 2.20.1