X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/f868c4327d366a7e142e27ffbaa383d75aef6c1b..6e63d1ac44fe5bc976be13efdc59a9d0b243fdc3:/sel/bres-adns.c diff --git a/sel/bres-adns.c b/sel/bres-adns.c index 0d93ab0..03fafa4 100644 --- a/sel/bres-adns.c +++ b/sel/bres-adns.c @@ -217,7 +217,7 @@ static void report(bres_client *rc, adns_answer *a, for (i = 0; i < nn && j < N(n) - 1; i++) if (strcmp(n[0], nv[i]) != 0) n[j++] = nv[i]; n[j++] = 0; - for (i = j = 0; i < an && j < N(av) - 1; i++) { + for (i = j = 0; i < an && j < N(aa) - 1; i++) { if (av[i].addr.sa.sa_family == AF_INET) aa[j++] = (char *)&av[i].addr.inet.sin_addr; }