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
Tero Saarni
OpenLDAP
Commits
9da1e112
Commit
9da1e112
authored
Dec 12, 2010
by
Quanah Gibson-Mount
Browse files
ITS#6653
parent
5983162e
Changes
2
Show whitespace changes
Inline
Side-by-side
CHANGES
View file @
9da1e112
...
...
@@ -4,6 +4,7 @@ OpenLDAP 2.4.24 Engineering
Fixed liblber to not close invalid sockets (ITS#6585)
Fixed libldap dnssrv port format specifier (ITS#6644)
Fixed libldap sasl partial write handling (ITS#6639)
Fixed libldap url parsing with NULL host (ITS#6653)
Fixed ldapsearch segfault with deref (ITS#6638)
Fixed slapd acl parsing overflow (ITS#6611)
Fixed slapd modify to return actual error (ITS#6581)
...
...
libraries/libldap/url.c
View file @
9da1e112
...
...
@@ -1425,6 +1425,7 @@ ldap_url_list2hosts (LDAPURLDesc *ludlist)
/* figure out how big the string is */
size
=
1
;
/* nul-term */
for
(
ludp
=
ludlist
;
ludp
!=
NULL
;
ludp
=
ludp
->
lud_next
)
{
if
(
ludp
->
lud_host
==
NULL
)
continue
;
size
+=
strlen
(
ludp
->
lud_host
)
+
1
;
/* host and space */
if
(
strchr
(
ludp
->
lud_host
,
':'
))
/* will add [ ] below */
size
+=
2
;
...
...
@@ -1437,6 +1438,7 @@ ldap_url_list2hosts (LDAPURLDesc *ludlist)
p
=
s
;
for
(
ludp
=
ludlist
;
ludp
!=
NULL
;
ludp
=
ludp
->
lud_next
)
{
if
(
ludp
->
lud_host
==
NULL
)
continue
;
if
(
strchr
(
ludp
->
lud_host
,
':'
))
{
p
+=
sprintf
(
p
,
"[%s]"
,
ludp
->
lud_host
);
}
else
{
...
...
@@ -1449,7 +1451,7 @@ ldap_url_list2hosts (LDAPURLDesc *ludlist)
}
if
(
p
!=
s
)
p
--
;
/* nuke that extra space */
*
p
=
0
;
*
p
=
'\0'
;
return
s
;
}
...
...
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