Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
b91491a8
Commit
b91491a8
authored
Mar 01, 2021
by
Paul Henson
Committed by
Quanah Gibson-Mount
Mar 08, 2021
Browse files
ITS
#9481
- fix proxyp when IPv6 disabled
parent
7a8f7c6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/proxyp.c
View file @
b91491a8
...
...
@@ -162,6 +162,7 @@ proxyp( ber_socket_t sfd, Sockaddr *from ) {
break
;
case
0x21
:
/* TCPv6 */
#ifdef LDAP_PF_INET6
lutil_sockaddrstr
(
from
,
&
peerbv
);
Debug
(
LDAP_DEBUG_STATS
,
"proxyp(%ld): via %s
\n
"
,
(
long
)
sfd
,
peername
);
...
...
@@ -169,6 +170,12 @@ proxyp( ber_socket_t sfd, Sockaddr *from ) {
memcpy
(
&
from
->
sa_in6_addr
.
sin6_addr
,
ppa
.
ip6
.
src_addr
,
sizeof
(
ppa
.
ip6
.
src_addr
)
);
from
->
sa_in6_addr
.
sin6_port
=
ppa
.
ip6
.
src_port
;
#else
Debug
(
LDAP_DEBUG_ANY
,
"proxyp(%ld): "
"IPv6 proxied addresses disabled,
\n
"
,
(
long
)
sfd
);
return
0
;
#endif
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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