]> git.sur5r.net Git - openldap/commitdiff
ITS#7582 CLDAP, avoid ref to uninit'd memory
authorHoward Chu <hyc@openldap.org>
Thu, 23 May 2013 19:36:15 +0000 (12:36 -0700)
committerHoward Chu <hyc@openldap.org>
Thu, 23 May 2013 19:36:15 +0000 (12:36 -0700)
libraries/libldap/request.c

index ce8c3f5d3cf2bbd0b2d0384fdaa64d660ec00e0c..fc2f4d0631b7287eacf3925685720d279cd6c2c8 100644 (file)
@@ -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;