mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
ITS#9904 ldif_open_url: check for ber_strdup failure
Code present since 1999, df8f7cbb9b
This commit is contained in:
parent
519e0c94c9
commit
ea8dd2d279
@ -69,6 +69,8 @@ ldif_open_url(
|
||||
}
|
||||
|
||||
p = ber_strdup( urlstr );
|
||||
if ( p == NULL )
|
||||
return NULL;
|
||||
|
||||
/* But we should convert to LDAP_DIRSEP before use */
|
||||
if ( LDAP_DIRSEP[0] != '/' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user