From: Howard Chu Date: Thu, 23 May 2013 19:36:15 +0000 (-0700) Subject: ITS#7582 CLDAP, avoid ref to uninit'd memory X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63312f109f4ca677979b62d34f30edbf68395a18;p=openldap ITS#7582 CLDAP, avoid ref to uninit'd memory --- diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index ce8c3f5d3c..fc2f4d0631 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -367,6 +367,9 @@ ldap_send_server_request( } /* Extract requestDN for future reference */ +#ifdef LDAP_CONNECTIONLESS + if ( !LDAP_IS_UDP(ld) ) +#endif { BerElement tmpber = *ber; ber_int_t bint;