Fixed an error pointed by Philar Law. Thanks! :)
The function used to iterate through BIB entries by IPv6 address used to stop prematurely.