]> 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)
committerHoward Chu <hyc@openldap.org>
Thu, 10 Oct 2013 17:26:28 +0000 (10:26 -0700)
commit743a9783d57ea6b693e56f6545ac5d68dc9242c7
treefad00459f2877f69b0ebfa0c143340f1e53903fc
parent63314e9c4a1d82f19941ed96627f09e536d8fd37
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