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
69727ebb
Commit
69727ebb
authored
Nov 09, 2021
by
Howard Chu
Browse files
ITS
#9743
init client socket port
also silence meaningless warning
parent
45720734
Pipeline
#3758
passed with stage
in 44 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/os-ip.c
View file @
69727ebb
...
...
@@ -263,7 +263,7 @@ ldap_pvt_is_socket_ready(LDAP *ld, int s)
==
AC_SOCKET_ERROR
)
{
/* XXX: needs to be replace with ber_stream_read() */
(
void
)
read
(
s
,
&
ch
,
1
);
(
void
)
!
read
(
s
,
&
ch
,
1
);
TRACE
;
return
-
1
;
}
...
...
@@ -697,6 +697,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
struct
sockaddr_in6
ip6addr
;
char
bind_addr
[
INET6_ADDRSTRLEN
];
ip6addr
.
sin6_family
=
AF_INET6
;
ip6addr
.
sin6_port
=
0
;
ip6addr
.
sin6_addr
=
ld
->
ld_options
.
ldo_local_ip_addrs
.
ip6_addr
;
inet_ntop
(
AF_INET6
,
&
(
ip6addr
.
sin6_addr
),
...
...
@@ -725,6 +726,7 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
struct
sockaddr_in
ip4addr
;
char
bind_addr
[
INET_ADDRSTRLEN
];
ip4addr
.
sin_family
=
AF_INET
;
ip4addr
.
sin_port
=
0
;
ip4addr
.
sin_addr
=
ld
->
ld_options
.
ldo_local_ip_addrs
.
ip4_addr
;
inet_ntop
(
AF_INET
,
&
(
ip4addr
.
sin_addr
),
...
...
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