bridge: fix possible overflow in get_fdb_entries (CVE-2006-5751)