X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Freferral.c;h=b647b133d4243c9e44456ce4cf5566ca4bc1a760;hb=450f352ec14a6c053b50cd2016c197d461990d8e;hp=064854c721911b4b3d08af7e58fff6270097780f;hpb=8fb8b17c0498b540341370b7dbd053581cd7683a;p=openldap diff --git a/servers/slapd/referral.c b/servers/slapd/referral.c index 064854c721..b647b133d4 100644 --- a/servers/slapd/referral.c +++ b/servers/slapd/referral.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2006 The OpenLDAP Foundation. + * Copyright 1998-2009 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -140,7 +140,7 @@ int validate_global_referral( const char *url ) int rc; LDAPURLDesc *lurl; - rc = ldap_url_parse_ext( url, &lurl ); + rc = ldap_url_parse_ext( url, &lurl, LDAP_PVT_URL_PARSE_NONE ); switch( rc ) { case LDAP_URL_SUCCESS: @@ -219,7 +219,7 @@ BerVarray referral_rewrite( char *dn; int rc; - rc = ldap_url_parse_ext( iv->bv_val, &url ); + rc = ldap_url_parse_ext( iv->bv_val, &url, LDAP_PVT_URL_PARSE_NONE ); if ( rc == LDAP_URL_ERR_BADSCHEME ) { ber_dupbv( jv++, iv ); continue;