Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
16010e5e
Commit
16010e5e
authored
Jul 03, 2017
by
Ondřej Kuzník
Committed by
Ondřej Kuzník
Nov 17, 2020
Browse files
More logging improvements
parent
7b7f9724
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/bind.c
View file @
16010e5e
...
...
@@ -118,6 +118,9 @@ fail:
ber_free
(
copy
,
0
);
}
ldap_pvt_thread_mutex_unlock
(
&
upstream
->
c_io_mutex
);
Debug
(
LDAP_DEBUG_STATS
,
"request_bind: "
"connid=%lu bind request processing failed, closing
\n
"
,
client
->
c_connid
);
return
1
;
}
...
...
@@ -248,6 +251,9 @@ fail:
ber_free
(
copy
,
0
);
}
ldap_pvt_thread_mutex_unlock
(
&
upstream
->
c_io_mutex
);
Debug
(
LDAP_DEBUG_STATS
,
"request_bind_as_vc: "
"connid=%lu bind request processing failed, closing
\n
"
,
client
->
c_connid
);
operation_send_reject
(
op
,
result
,
msg
,
1
);
return
1
;
}
...
...
servers/lloadd/client.c
View file @
16010e5e
...
...
@@ -55,7 +55,8 @@ client_read_cb( evutil_socket_t s, short what, void *arg )
ber
=
c
->
c_currentber
;
if
(
ber
==
NULL
&&
(
ber
=
ber_alloc
())
==
NULL
)
{
Debug
(
LDAP_DEBUG_ANY
,
"client_read_cb: "
"ber_alloc failed
\n
"
);
"connid=%lu, ber_alloc failed
\n
"
,
c
->
c_connid
);
CLIENT_DESTROY
(
c
);
return
;
}
...
...
@@ -151,7 +152,8 @@ handle_requests( void *ctx, void *arg )
if
(
(
ber
=
ber_alloc
())
==
NULL
)
{
Debug
(
LDAP_DEBUG_ANY
,
"client_read_cb: "
"ber_alloc failed
\n
"
);
"connid=%lu, ber_alloc failed
\n
"
,
c
->
c_connid
);
CLIENT_DESTROY
(
c
);
return
NULL
;
}
...
...
@@ -205,7 +207,8 @@ handle_one_request( Connection *c )
op
=
operation_init
(
c
,
ber
);
if
(
!
op
)
{
Debug
(
LDAP_DEBUG_ANY
,
"handle_one_request: "
"operation_init failed
\n
"
);
"connid=%lu, operation_init failed
\n
"
,
c
->
c_connid
);
CLIENT_DESTROY
(
c
);
ber_free
(
ber
,
1
);
return
-
1
;
...
...
servers/lloadd/operation.c
View file @
16010e5e
...
...
@@ -628,6 +628,9 @@ operation_send_reject(
ber
=
c
->
c_pendingber
;
if
(
ber
==
NULL
&&
(
ber
=
ber_alloc
())
==
NULL
)
{
ldap_pvt_thread_mutex_unlock
(
&
c
->
c_io_mutex
);
Debug
(
LDAP_DEBUG_ANY
,
"operation_send_reject: "
"ber_alloc failed, closing connid=%lu
\n
"
,
c
->
c_connid
);
CONNECTION_LOCK_DECREF
(
c
);
operation_destroy_from_client
(
op
);
CLIENT_DESTROY
(
c
);
...
...
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