mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
cleanup
This commit is contained in:
parent
f4239db146
commit
848ea293a3
2 changed files with 6 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue