diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-12-13 15:34:44 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-12-13 15:34:44 +0000 |
commit | e1a7ce4264d639195d857541152c9ad6b70e0a86 (patch) | |
tree | dbfb562b95980af98130a1873d9130cdc8578af1 /usr.sbin/ospf6d | |
parent | d0399c07df7b0b3e20240e9809f5c1591ec5ef73 (diff) |
Use imsg_get_fd() to access the control fd.
OK tb@
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r-- | usr.sbin/ospf6d/ospfe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/ospfe.c b/usr.sbin/ospf6d/ospfe.c index e10926de61f..a2a161a9889 100644 --- a/usr.sbin/ospf6d/ospfe.c +++ b/usr.sbin/ospf6d/ospfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfe.c,v 1.70 2023/07/03 09:51:38 claudio Exp $ */ +/* $OpenBSD: ospfe.c,v 1.71 2023/12/13 15:34:43 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -401,7 +401,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. */ |