• Pekka Pessi's avatar
    Fixed msg_addrlen() usage. · 2a7b3c9a
    Pekka Pessi authored
    msg_addrlen() returns a pointer to ai_addrlen field of struct addrinfo
    inside the msg_t object. ai_addrlen has type size_t. However, system calls
    taking a return valur pointer to address length, use type socklen_t.
    Typically size_t is unsigned long, socklen_t is int, so casting
    msg_addrlen() return value to (socklen_t *) will break on (high-endian)
    64-bit platforms. svsp.
tport_type_udp.c 10.5 KB