mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#9578 ldif: terminate buf after truncating \r
This commit is contained in:
parent
3e45c71d29
commit
00529facbe
@ -829,6 +829,7 @@ ldif_read_record(
|
||||
/* Squash \r\n to \n */
|
||||
if ( len > 1 && line[len-2] == '\r' ) {
|
||||
len--;
|
||||
line[len] = '\0';
|
||||
line[len-1] = '\n';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user