]> 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 18:00:39 +0000 (11:00 -0700)
commit4b1c935cd19f7255529a8b84210c4cd19b11481a
tree512e2de6605a20ab9bd50c90a50f932ea405f4cb
parent30495311c01f7fd6f6058738aa0fcec496e6de2e
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