mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 20:06:06 -05:00
ITS#601: fix fetch bugs
This commit is contained in:
parent
d19419392c
commit
d4c721ffa3
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ ldif_fetch_url(
|
|||
p = ber_strdup( p );
|
||||
ldap_pvt_hex_unescape( p );
|
||||
|
||||
url = fopen( p, "r" );
|
||||
url = fopen( p, "rb" );
|
||||
|
||||
} else {
|
||||
return -1;
|
||||
|
|
@ -79,7 +79,7 @@ ldif_fetch_url(
|
|||
fclose( url );
|
||||
return -1;
|
||||
}
|
||||
newp = p;
|
||||
p = newp;
|
||||
SAFEMEMCPY( &p[total], buffer, bytes );
|
||||
total += bytes;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue