Simplify loop when checking search for address
Simplify loop when checking search for address

Rather than checking record length repeatedly this sets function pointers once
and then uses them in the loop.

maxmind/libmaxminddb,maxmind/libmaxminddb,maxmind/libmaxminddb