diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-12-14 11:10:20 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-12-14 11:10:20 +0000 |
commit | e1ba33c5ceafbc400f3c86b405c0174b6b4f9f23 (patch) | |
tree | bf758873a65fe0eccf5d93ff6522913c15bc5136 /usr.sbin/ldpd/lde.c | |
parent | b729044d9409ccbbfc5cf44ec6bb4c8b118b21a2 (diff) |
Use imsg_get_fd() to access the file descriptor passed in the imsg.
OK tb@
Diffstat (limited to 'usr.sbin/ldpd/lde.c')
-rw-r--r-- | usr.sbin/ldpd/lde.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/lde.c b/usr.sbin/ldpd/lde.c index 4eb4c08f75c..1f41a59d6d9 100644 --- a/usr.sbin/ldpd/lde.c +++ b/usr.sbin/ldpd/lde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lde.c,v 1.76 2023/03/08 04:43:13 guenther Exp $ */ +/* $OpenBSD: lde.c,v 1.77 2023/12/14 11:10:19 claudio Exp $ */ /* * Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org> @@ -452,7 +452,7 @@ lde_dispatch_parent(int fd, short event, void *bula) "to ldpe", __func__); break; } - if ((fd = imsg.fd) == -1) { + if ((fd = imsg_get_fd(&imsg)) == -1) { log_warnx("%s: expected to receive imsg fd to " "ldpe but didn't receive any", __func__); break; |