Fix back-shell realloc bug (reverting version to 1.2.11re)

This commit is contained in:
Kurt Zeilenga 2000-06-09 01:44:48 +00:00
parent e4b2a7b8c0
commit cd1f1b31e8
3 changed files with 4 additions and 5 deletions

View file

@ -1,9 +1,5 @@
OpenLDAP Change Log
Changes included in OpenLDAP 1.2.12 Release Engineering
CVS Tag: OPENLDAP_REL_ENG_1_2_12
<insert changes here>
Changes included in OpenLDAP 1.2.11
CVS Tag: OPENLDAP_REL_ENG_1_2_11
Fixed /tmp races in ud, ldapsearch, ldbmtest and slurpd
@ -16,6 +12,7 @@ Changes included in OpenLDAP 1.2.11
Fixed ACL groups member matching
Raise MAXDBCACHE to 128 (ITS#512)
Fixed slapd client_addr crash (ITS#579)
Fixed back-shell realloc bug (ITS#506)
Build Environment
Update res_search detection
Detect and use getpassphrase() and getpass()

View file

@ -1 +1 @@
1.2.12-Engineering
1.2.11-Engineering

View file

@ -42,8 +42,10 @@ read_and_send_results(
}
len = strlen( line );
while ( bp + len - buf > bsize ) {
size_t offset = bp - buf;
bsize += BUFSIZ;
buf = (char *) ch_realloc( buf, bsize );
bp = &buf[offset];
}
strcpy( bp, line );
bp += len;