Commits on Dec 27, 2010
  1. @bagder
  2. @bagder

    init_by_resolv_conf: fix compiler warnings

    The code received the return codes in the 'status' variable without
    using it. Instead we just ignore those particular errors.
    bagder committed Dec 27, 2010
  3. @bagder
  4. @bagder

    advance_tcp_send_queue: avoid NULL ptr dereference

    If given a too large 'num_bytes' value, it would cause a NULL ptr
    dereference. Instead the code will now break out of the loop at the end
    of the list.
    bagder committed Dec 27, 2010
Commits on Dec 19, 2010
  1. @ppentchev @bagder

    configure: fix a bashism

    ppentchev committed with bagder Dec 19, 2010
Commits on Dec 18, 2010
  1. @bagder

    cleanup: avoid unsafe typecasts

    Avoid the risk of reading 16bit data from an unaligned address by using
    a macro that is adapted for this.
    bagder committed Dec 18, 2010
  2. @stbuehler @bagder
  3. @yangtse
Commits on Dec 17, 2010
  1. @yangtse
  2. @yangtse
Commits on Dec 16, 2010
  1. @yangtse
  2. @yangtse

    configure: temporarily disable detection of system's inet_ntop()

    This is done to allow compilation of ares_inet_ntop() by some daily
    builds picky compilers that otherwise do not need this function.
    yangtse committed Dec 16, 2010
  3. @yangtse

    changes: mention last fix

    yangtse committed Dec 16, 2010
  4. @yangtse

    ares_inet_ntop: remove definition and usage of macro SPRINTF

    Existing definition of SPRINTF always resulted in sprintf() being used,
    and sprintf() returning 'int' is already used throughout the library.
    yangtse committed Dec 16, 2010
  5. @yangtse

    ares_inet_ntop: reapply changes from previous c-ares version (III)

    - Replace 'u_char' with 'unsigned char'.
    - Replace 'u_int' with 'unsigned int'.
    - use macros ERRNO and SET_ERRNO() for errno handling.
    yangtse committed Dec 16, 2010
  6. @yangtse

    ares_inet_ntop: reapply changes from previous c-ares version (II)

    - Remove rcsid.
    - Adjust header file inclusions.
    - ares_inet_ntop used only on systems without a proper inet_ntop function.
    yangtse committed Dec 16, 2010
  7. @yangtse

    ares_inet_ntop: reapply changes from previous c-ares version (I)

    - Replace tabs with spaces.
    - Use ANSI C style for function declarations and definitions.
    - Use sizeof with parentheses.
    yangtse committed Dec 16, 2010
  8. @yangtse

    ares_inet_ntop: fix off by one error triggering out of bounds write

    ares_inet_ntop would trigger an out of bounds write when the representation
    of the address required 15 characters, due to not taking in account null
    termination character.
    
    Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes.
    yangtse committed Dec 16, 2010
  9. @yangtse
  10. @yangtse
Commits on Dec 15, 2010
  1. @yangtse

    ares_inet_net_pton: fix non-rejection of some malformed literals

    ares_inet_net_pton would return wrong values when excessively large,
    and invalid, netmasks are used. Fixes are from bind-9.5.3rc1,
    issue also described in the WLB-2008080064 advisory.
    yangtse committed Dec 15, 2010
  2. @yangtse
  3. @yangtse

    configure: inet_net_pton function check adjustments

    Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
    capable and is not affected by the WLB-2008080064 advisory.
    
    HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
    yangtse committed Dec 15, 2010
Commits on Dec 10, 2010
  1. @yangtse

    ares_init: fix detection of semicolon comments in resolv.conf

    File resolv.conf may either use a hash '#' or a semicolon ';' character as an
    indication that the rest of the line is a comment.  This fixes not recognizing
    the semicolon as a valid comment indicator in resolv.conf.
    yangtse committed Dec 10, 2010
  2. @yangtse

    version: start working on 1.7.5

    yangtse committed Dec 10, 2010
Commits on Dec 8, 2010
  1. @bagder
  2. @bagder
Commits on Dec 3, 2010
  1. @yangtse
  2. @yangtse
Commits on Dec 2, 2010
  1. @yangtse
  2. @yangtse
  3. @yangtse
  4. @yangtse
  5. @bnoordhuis @bagder

    ares_parse_a_reply: fix CNAME response parsing

    Reply to a CNAME query doesn't contain addresses, causing
    ares_parse_a_reply() to bail out with ARES_ENODATA
    
    Bug: http://groups.google.com/group/nodejs/browse_thread/thread/a1268c9ea5e9ad9b
    bnoordhuis committed with bagder Dec 2, 2010
Commits on Dec 1, 2010
  1. @yangtse