Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
cd8eb327
Commit
cd8eb327
authored
Dec 28, 2001
by
Pierangelo Masarati
Browse files
more exploitation of efficient parsing
parent
f2a80ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/dn.c
View file @
cd8eb327
...
...
@@ -620,15 +620,13 @@ dnParent(
const
char
*
dn
,
const
char
**
pdn
)
{
LDAPRDN
*
tmpRDN
;
const
char
*
p
;
int
rc
;
rc
=
ldap_str2rdn
(
dn
,
&
tmpRDN
,
&
p
,
LDAP_DN_FORMAT_LDAP
);
rc
=
ldap_str2rdn
(
dn
,
NULL
,
&
p
,
LDAP_DN_FORMAT_LDAP
|
LDAP_DN_SKIP
);
if
(
rc
!=
LDAP_SUCCESS
)
{
return
rc
;
}
ldap_rdnfree
(
tmpRDN
);
assert
(
DN_SEPARATOR
(
p
[
0
]
)
);
p
++
;
...
...
@@ -715,7 +713,7 @@ dn_rdnlen(
struct
berval
*
dn_in
)
{
int
rc
;
char
*
p
;
const
char
*
p
;
assert
(
dn_in
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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