From 39a47af7398ae00e2db9b873a9b2fa386f5b6f90 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 27 Feb 2021 17:47:43 +0000 Subject: [PATCH] ensure local array is same size as global --- sbin/resolvd/resolvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/resolvd/resolvd.c b/sbin/resolvd/resolvd.c index 01c9da57795..0f73b8b7b04 100644 --- a/sbin/resolvd/resolvd.c +++ b/sbin/resolvd/resolvd.c @@ -397,7 +397,7 @@ findslot(struct rdns_proposal *tab) void handle_route_message(struct rt_msghdr *rtm, struct sockaddr **rti_info) { - struct rdns_proposal learning[ASR_MAXNS]; + struct rdns_proposal learning[nitems(learned)]; struct sockaddr_rtdns *rtdns; struct if_announcemsghdr *ifan; int rdns_count, af, i; -- 2.20.1