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
Joe Martin
OpenLDAP
Commits
22edaef4
Commit
22edaef4
authored
Dec 11, 2013
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jan 07, 2014
Browse files
ITS#7762 shortcut NULL RDNs
parent
b8875761
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/getdn.c
View file @
22edaef4
...
...
@@ -2987,7 +2987,7 @@ int ldap_dn2bv_x( LDAPDN dn, struct berval *bv, unsigned flags, void *ctx )
* a null dn means an empty dn string
* FIXME: better raise an error?
*/
if
(
dn
==
NULL
)
{
if
(
dn
==
NULL
||
dn
[
0
]
==
NULL
)
{
bv
->
bv_val
=
LDAP_STRDUPX
(
""
,
ctx
);
return
(
LDAP_SUCCESS
);
}
...
...
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