Skip to content
  • Stef Walter's avatar
    ITS#7694 Fix use of IPv6 with LDAP_CONNECTIONLESS · 743a9783
    Stef Walter authored and Howard Chu's avatar Howard Chu committed
    LDAP_CONNECTIONLESS code assumed that the size of an peer address
    is equal to or smaller than sizeof (struct sockaddr).
    
    Fix to use struct sockaddr_storage instead which is intended for
    this purpose. Use getnameinfo() where appropriate so we don't
    assume anything about the contents of struct sockaddr
    743a9783