This commit is contained in:
Pierangelo Masarati 2007-06-19 22:59:53 +00:00
parent f4239db146
commit 848ea293a3
2 changed files with 6 additions and 3 deletions

View file

@ -47,7 +47,10 @@ struct ldap_url_desc; /* avoid pulling in <ldap.h> */
#define LDAP_PVT_URL_PARSE_DEF_PORT (0x02U)
#define LDAP_PVT_URL_PARSE_NOEMPTY_DN (0x04U)
#define LDAP_PVT_URL_PARSE_NODEF_SCOPE (0x08U)
#define LDAP_PVT_URL_PARSE_HISTORIC (LDAP_PVT_URL_PARSE_NODEF_SCOPE | LDAP_PVT_URL_PARSE_NOEMPTY_HOST | LDAP_PVT_URL_PARSE_DEF_PORT)
#define LDAP_PVT_URL_PARSE_HISTORIC (LDAP_PVT_URL_PARSE_NODEF_SCOPE | \
LDAP_PVT_URL_PARSE_NOEMPTY_HOST | \
LDAP_PVT_URL_PARSE_DEF_PORT)
LDAP_F( int )
ldap_url_parse_ext LDAP_P((
LDAP_CONST char *url,

View file

@ -552,7 +552,7 @@ desc2str_len( LDAPURLDesc *u )
}
if ( u->lud_filter ) {
len += hex_escape_len( u->lud_filter, URLESC_NONE );
len += hex_escape_len( u->lud_filter, URLESC_NONE );
if ( !sep ) {
sep = 4;
}
@ -566,7 +566,7 @@ desc2str_len( LDAPURLDesc *u )
}
if ( u->lud_attrs ) {
len += hex_escape_len_list( u->lud_attrs, URLESC_NONE );
len += hex_escape_len_list( u->lud_attrs, URLESC_NONE );
if ( !sep ) {
sep = 2;
}