mirror of https://github.com/getdnsapi/getdns.git
Fix array bounds bug in upstream_select
This commit is contained in:
parent
2d7d6581b4
commit
1555c432f5
|
@ -1962,7 +1962,7 @@ upstream_select(getdns_network_req *netreq)
|
|||
return &upstreams->upstreams[i];
|
||||
}
|
||||
i+=GETDNS_UPSTREAM_TRANSPORTS;
|
||||
if (i > upstreams->count)
|
||||
if (i >= upstreams->count)
|
||||
i = 0;
|
||||
} while (i != upstreams->current_udp);
|
||||
|
||||
|
|
Loading…
Reference in New Issue