Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
80449c42
Commit
80449c42
authored
May 07, 2004
by
Pierangelo Masarati
Browse files
fix escaped semicolon bug in back-bdb
parent
e5d1b313
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/cache.c
View file @
80449c42
...
...
@@ -336,9 +336,9 @@ bdb_cache_find_ndn(
/* Advance to next lower RDN */
for
(
ptr
=
ei
.
bei_nrdn
.
bv_val
-
2
;
ptr
>
ndn
->
bv_val
&&
!
DN_SEPARATOR
(
*
ptr
);
ptr
--
)
/* empty */
;
&&
!
N
DN_SEPARATOR
(
*
ptr
);
ptr
--
)
/* empty */
;
if
(
ptr
>=
ndn
->
bv_val
)
{
if
(
DN_SEPARATOR
(
*
ptr
))
ptr
++
;
if
(
N
DN_SEPARATOR
(
*
ptr
))
ptr
++
;
ei
.
bei_nrdn
.
bv_len
=
ei
.
bei_nrdn
.
bv_val
-
ptr
-
1
;
ei
.
bei_nrdn
.
bv_val
=
ptr
;
}
...
...
servers/slapd/slap.h
View file @
80449c42
...
...
@@ -133,7 +133,8 @@ LDAP_BEGIN_DECL
|| (c) == '(' || (c) == ')' || !ASCII_PRINTABLE(c) )
#define DN_ESCAPE(c) ((c) == SLAP_ESCAPE_CHAR)
#define DN_SEPARATOR(c) ((c) == ',' || (c) == ';')
#define NDN_SEPARATOR(c) ((c) == ',')
#define DN_SEPARATOR(c) (NDN_SEPARATOR(c) || (c) == ';')
#define RDN_ATTRTYPEANDVALUE_SEPARATOR(c) ((c) == '+')
/* RFC 2253 */
#define RDN_SEPARATOR(c) (DN_SEPARATOR(c) || RDN_ATTRTYPEANDVALUE_SEPARATOR(c))
#define RDN_NEEDSESCAPE(c) ((c) == '\\' || (c) == '"')
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment