From: deraadt Date: Sat, 27 Feb 2021 17:47:43 +0000 (+0000) Subject: ensure local array is same size as global X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=39a47af7398ae00e2db9b873a9b2fa386f5b6f90;p=openbsd ensure local array is same size as global --- 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;