ITS#9904 ldif_open_url: check for ber_strdup failure

Code present since 1999, df8f7cbb9b
This commit is contained in:
Howard Chu 2022-08-24 14:40:51 +01:00
parent 519e0c94c9
commit ea8dd2d279

View File

@ -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] != '/' ) {