Skip to content
Snippets Groups Projects
Commit f34c94e5 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Disable LDAP_MEMORY_DEBUG on NT (should not have been enabled by default).

Fix LDAP_MEMORY_DEBUG realloc size bug, thanks Alex.
parent 2c4a3c84
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@
#define DIRSEP "\\"
#if defined( _DEBUG ) && !defined( LDAP_DEBUG )
#define LDAP_MEMORY_DEBUG 1
/* #define LDAP_MEMORY_DEBUG 1 */
#define LDAP_DEBUG 1
#endif
......
......@@ -194,7 +194,7 @@ ber_memrealloc( void* p, size_t s )
((char *)p - sizeof(struct ber_mem_hdr));
assert( mh->bm_junk == BER_MEM_JUNK );
p = realloc( mh, s );
p = realloc( mh, s + sizeof(struct ber_mem_hdr) );
if( p == NULL ) return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment