From 63312f109f4ca677979b62d34f30edbf68395a18 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 23 May 2013 12:36:15 -0700 Subject: [PATCH] ITS#7582 CLDAP, avoid ref to uninit'd memory --- libraries/libldap/request.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5