Skip to content

Minor Bug Fixes

Choose a tag to compare

@rafl rafl released this 20 Mar 22:59
· 674 commits to main since this release

1.1.5 - 2016-03-20

  • Previously, reading a database with a pointer in the metadata would cause an
    MMDB_INVALID_METADATA_ERROR to be returned. This was due to an invalid
    offset being used when calculating the pointer. The data_section and
    metadata_section fields now both point to the beginning of the data
    section. Previously, data_section pointed to the beginning of the data
    separator. This will not affect anyone using only documented fields from
    MMDB_s.
  • MMDB_lookup_sockaddr will set mmdb_error to
    MMDB_IPV6_LOOKUP_IN_IPV4_DATABASE_ERROR if an IPv6 sockaddr is looked up
    in an IPv4-only database. Previously only MMDB_lookup_string would set
    this error code.
  • When resolving an address, this library now relies on getaddrinfo to
    determine the address family rather than trying to guess it itself.