]> git.sur5r.net Git - openldap/commit
ITS#7694 Fix use of IPv6 with LDAP_CONNECTIONLESS
authorStef Walter <stefw@redhat.com>
Thu, 12 Sep 2013 13:49:36 +0000 (15:49 +0200)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 10 Oct 2013 17:59:56 +0000 (10:59 -0700)
commit3ebe59266fa60abec09776e859f262325f6a9d24
tree52ce8afa150367609dccb81cd5ea0a98564ad96b
parent3455e8449ade97e037cc392b465e3f284e109331
ITS#7694 Fix use of IPv6 with LDAP_CONNECTIONLESS

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
libraries/liblber/sockbuf.c
libraries/libldap/abandon.c
libraries/libldap/open.c
libraries/libldap/os-ip.c
libraries/libldap/request.c
libraries/libldap/result.c
libraries/libldap/search.c