From 19ca2900702191bfad825bfda21f4992c99ec946 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 13 Dec 2023 15:34:27 +0000 Subject: [PATCH] Use imsg_get_fd() to access the control fd. OK tb@ --- usr.sbin/ospfd/ospfe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ospfd/ospfe.c b/usr.sbin/ospfd/ospfe.c index 0cc8470de76..575dbb89879 100644 --- a/usr.sbin/ospfd/ospfe.c +++ b/usr.sbin/ospfd/ospfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfe.c,v 1.113 2023/07/03 09:40:47 claudio Exp $ */ +/* $OpenBSD: ospfe.c,v 1.114 2023/12/13 15:34:27 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker @@ -452,7 +452,7 @@ ospfe_dispatch_main(int fd, short event, void *bula) control_imsg_relay(&imsg); break; case IMSG_CONTROLFD: - if ((fd = imsg.fd) == -1) + if ((fd = imsg_get_fd(&imsg)) == -1) fatalx("%s: expected to receive imsg control" "fd but didn't receive any", __func__); /* Listen on control socket. */ -- 2.20.1