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
7df2a0f3
Commit
7df2a0f3
authored
Apr 15, 2021
by
Ondřej Kuzník
Browse files
ITS
#8847
Allocate a large enough buffer
parent
ae77343d
Pipeline
#2531
passed with stage
in 50 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/request.c
View file @
7df2a0f3
...
...
@@ -860,10 +860,10 @@ ldap_dump_connection( LDAP *ld, LDAPConn *lconns, int all )
struct
berval
frombv
=
BER_BVC
(
from
);
ber_socket_t
sb
;
if
(
ber_sockbuf_ctrl
(
lc
->
lconn_sb
,
LBER_SB_OPT_GET_FD
,
&
sb
)
==
1
)
{
struct
s
ockaddr
_in
sin
;
S
ockaddr
sin
;
socklen_t
len
=
sizeof
(
sin
);
if
(
getsockname
(
sb
,
(
struct
sockaddr
*
)
&
sin
,
&
len
)
==
0
)
{
ldap_pvt_sockaddrstr
(
(
Sockaddr
*
)
&
sin
,
&
frombv
);
ldap_pvt_sockaddrstr
(
&
sin
,
&
frombv
);
Debug1
(
LDAP_DEBUG_TRACE
,
"* from: %s
\n
"
,
(
from
==
NULL
)
?
"(null)"
:
from
);
}
...
...
Write
Preview
Markdown
is supported
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