Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
39be7e07
Commit
39be7e07
authored
May 04, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
May 10, 2021
Browse files
ITS#8747 Remove c_private from LloadConnection
parent
03fd98cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/client.c
View file @
39be7e07
...
...
@@ -391,7 +391,6 @@ fail:
LloadConnection
*
client_init
(
ber_socket_t
s
,
LloadListener
*
listener
,
const
char
*
peername
,
struct
event_base
*
base
,
int
flags
)
...
...
@@ -401,8 +400,6 @@ client_init(
event_callback_fn
read_cb
=
connection_read_cb
,
write_cb
=
connection_write_cb
;
assert
(
listener
!=
NULL
);
if
(
(
c
=
lload_connection_init
(
s
,
peername
,
flags
)
)
==
NULL
)
{
return
NULL
;
}
...
...
@@ -456,7 +453,6 @@ client_init(
}
c
->
c_write_event
=
event
;
c
->
c_private
=
listener
;
c
->
c_destroy
=
client_destroy
;
c
->
c_unlink
=
client_unlink
;
c
->
c_pdu_cb
=
handle_one_request
;
...
...
servers/lloadd/daemon.c
View file @
39be7e07
...
...
@@ -931,7 +931,7 @@ lload_listener(
#ifdef HAVE_TLS
if
(
sl
->
sl_is_tls
)
cflag
|=
CONN_IS_TLS
;
#endif
c
=
client_init
(
s
,
sl
,
peername
,
lload_daemon
[
tid
].
base
,
cflag
);
c
=
client_init
(
s
,
peername
,
lload_daemon
[
tid
].
base
,
cflag
);
if
(
!
c
)
{
Debug
(
LDAP_DEBUG_ANY
,
"lload_listener: "
...
...
servers/lloadd/lload.h
View file @
39be7e07
...
...
@@ -410,8 +410,6 @@ struct LloadConnection {
* - Upstream: b->b_mutex
*/
LDAP_CIRCLEQ_ENTRY
(
LloadConnection
)
c_next
;
void
*
c_private
;
};
enum
op_state
{
...
...
servers/lloadd/proto-lload.h
View file @
39be7e07
...
...
@@ -60,7 +60,7 @@ LDAP_SLAPD_F (int) request_abandon( LloadConnection *c, LloadOperation *op );
LDAP_SLAPD_F
(
int
)
request_process
(
LloadConnection
*
c
,
LloadOperation
*
op
);
LDAP_SLAPD_F
(
int
)
handle_one_request
(
LloadConnection
*
c
);
LDAP_SLAPD_F
(
void
)
client_tls_handshake_cb
(
evutil_socket_t
s
,
short
what
,
void
*
arg
);
LDAP_SLAPD_F
(
LloadConnection
*
)
client_init
(
ber_socket_t
s
,
LloadListener
*
url
,
const
char
*
peername
,
struct
event_base
*
base
,
int
use_tls
);
LDAP_SLAPD_F
(
LloadConnection
*
)
client_init
(
ber_socket_t
s
,
const
char
*
peername
,
struct
event_base
*
base
,
int
use_tls
);
LDAP_SLAPD_F
(
void
)
client_reset
(
LloadConnection
*
c
);
LDAP_SLAPD_F
(
void
)
client_destroy
(
LloadConnection
*
c
);
LDAP_SLAPD_F
(
void
)
clients_destroy
(
int
gentle
);
...
...
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