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
81e9e868
Commit
81e9e868
authored
Jan 02, 2002
by
Howard Chu
Browse files
Fix ldap_str2rdn, make sure to update progress pointer; don't
free attrType since we never allocate it
parent
670c66bd
Changes
1
Show whitespace changes
Inline
Side-by-side
libraries/libldap/getdn.c
View file @
81e9e868
...
...
@@ -1178,12 +1178,10 @@ ldap_str2rdn( const char *str, LDAPRDN **rdn, const char **n, unsigned flags )
goto
parsing_error
;
}
}
*
n
=
p
;
parsing_error:
;
/* They are set to NULL after they're used in an AVA */
if
(
attrType
.
bv_val
)
{
free
(
attrType
.
bv_val
);
}
if
(
attrValue
.
bv_val
)
{
free
(
attrValue
.
bv_val
);
...
...
@@ -1195,7 +1193,7 @@ parsing_error:;
return_result:
;
Debug
(
LDAP_DEBUG_TRACE
,
"<= ldap_str2rdn(%*s)=%d
\n
"
,
*
n
-
p
,
str
,
rc
);
p
-
str
,
str
,
rc
);
if
(
rdn
)
{
*
rdn
=
newRDN
;
}
...
...
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