]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/getentry.c
ITS#897 Internal connection that is closed on one end and about to
[openldap] / libraries / libldap / getentry.c
index dee482cfec8d11e623c87b4ce61213a0c4daa731..66d40656ade8d090db1c522abe2dd4f92e546267 100644 (file)
@@ -15,7 +15,6 @@
 #include <stdio.h>
 #include <ac/stdlib.h>
 
-#include <ac/ctype.h>
 #include <ac/socket.h>
 #include <ac/string.h>
 #include <ac/time.h>
@@ -105,7 +104,7 @@ ldap_get_entry_controls(
        }
 
        /* make a local copy of the BerElement */
-       SAFEMEMCPY(&be, entry->lm_ber, sizeof(be));
+       AC_MEMCPY(&be, entry->lm_ber, sizeof(be));
 
        if ( ber_scanf( &be, "{xx" /*}*/ ) == LBER_ERROR ) {
                rc = LDAP_DECODING_ERROR;