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
cdcc2469
Commit
cdcc2469
authored
Feb 12, 2008
by
Quanah Gibson-Mount
Browse files
ITS#5324
parent
8f580031
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
cdcc2469
...
...
@@ -8,6 +8,7 @@ OpenLDAP 2.4.8 Engineering
Fixed libldap ldap_parse_sasl_bind_result (ITS#5263)
Fixed libldap search timeout crash (ITS#5291)
Fixed libldap paged results crash (ITS#5315)
Fixed libldap use of %n (ITS#5324)
Fixed ldapdelete with sizelimit (ITS#5294)
Fixed slapd idlcache on adds (ITS#5086)
Fixed slapd include handling (ITS#5276)
...
...
libraries/libldap/url.c
View file @
cdcc2469
...
...
@@ -642,14 +642,16 @@ desc2str( LDAPURLDesc *u, char *s, int len )
}
if
(
u
->
lud_port
)
{
len
-
=
sprintf
(
s
,
"%s://%s%s%s:%d
%n
"
,
u
->
lud_scheme
,
sofar
=
sprintf
(
s
,
"%s://%s%s%s:%d"
,
u
->
lud_scheme
,
is_v6
?
"["
:
""
,
u
->
lud_host
?
u
->
lud_host
:
""
,
is_v6
?
"]"
:
""
,
u
->
lud_port
,
&
sofar
);
u
->
lud_port
);
len
-=
sofar
;
}
else
{
len
-=
sprintf
(
s
,
"%s://%n"
,
u
->
lud_scheme
,
&
sofar
);
sofar
=
sprintf
(
s
,
"%s://"
,
u
->
lud_scheme
);
len
-=
sofar
;
if
(
u
->
lud_host
&&
u
->
lud_host
[
0
]
)
{
if
(
is_v6
)
{
s
[
sofar
++
]
=
'['
;
...
...
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