summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/ldpe.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2016-05-23 18:55:22 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2016-05-23 18:55:22 +0000
commit2a70268000d85df755837c9e48ee7423c839ee75 (patch)
tree67683dade7ac2736ce4822eb97661b0ad31c0095 /usr.sbin/ldpd/ldpe.c
parentebae18186cf17f2f810c98c06ed0ea36692fc552 (diff)
Assorted fixes and small cleanup.
Nothing really interesting here.
Diffstat (limited to 'usr.sbin/ldpd/ldpe.c')
-rw-r--r--usr.sbin/ldpd/ldpe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/ldpe.c b/usr.sbin/ldpd/ldpe.c
index 55ebe250fbc..228e1f9bc5e 100644
--- a/usr.sbin/ldpd/ldpe.c
+++ b/usr.sbin/ldpd/ldpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldpe.c,v 1.55 2016/05/23 18:41:59 renato Exp $ */
+/* $OpenBSD: ldpe.c,v 1.56 2016/05/23 18:55:21 renato Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -274,8 +274,8 @@ ldpe_dispatch_main(int fd, short event, void *bula)
if (imsg.hdr.len != IMSG_HEADER_SIZE +
sizeof(struct kif))
fatalx("IFSTATUS imsg with wrong len");
-
kif = imsg.data;
+
iface = if_lookup(leconf, kif->ifindex);
if (!iface)
break;