Doh! I can't tell you how often I've looked at that very line of code,
all of the crashes were due to an off-by-one in dnresolv:/^serveraddrs the final loop in the function should be limited by Maxdest-1, since Maxdest is an index not a count.