]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/referral.c
Fix compare op
[openldap] / servers / slapd / referral.c
index 064854c721911b4b3d08af7e58fff6270097780f..b647b133d4243c9e44456ce4cf5566ca4bc1a760 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * 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;