mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
More for ITS#5117 - only use libfetch for non-file: URLs
This commit is contained in:
parent
ec78507682
commit
8a532879cd
@ -43,10 +43,7 @@ ldif_open_url(
|
||||
LDAP_CONST char *urlstr )
|
||||
{
|
||||
FILE *url;
|
||||
#ifdef HAVE_FETCH
|
||||
url = fetchGetURL( (char*) urlstr, "" );
|
||||
|
||||
#else
|
||||
if( strncasecmp( "file:", urlstr, sizeof("file:")-1 ) == 0 ) {
|
||||
char *p;
|
||||
urlstr += sizeof("file:")-1;
|
||||
@ -66,9 +63,12 @@ ldif_open_url(
|
||||
|
||||
ber_memfree( p );
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
#ifdef HAVE_FETCH
|
||||
url = fetchGetURL( (char*) urlstr, "" );
|
||||
#else
|
||||
url = NULL;
|
||||
#endif
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user