mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue