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
Joe Martin
OpenLDAP
Commits
00116847
Commit
00116847
authored
Feb 08, 2018
by
Ondřej Kuzník
Browse files
Cleanup sasl_bind_mech resets
parent
9bd90a74
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/bind.c
View file @
00116847
...
...
@@ -306,14 +306,11 @@ request_bind( LloadConnection *client, LloadOperation *op )
rc
=
bind_mech_external
(
client
,
op
,
&
credentials
);
/* terminate the upstream side if client switched mechanisms */
if
(
!
BER_BVISNULL
(
&
client
->
c_sasl_bind_mech
)
)
{
if
(
pin
)
{
op
->
o_client_refcnt
++
;
CONNECTION_UNLOCK_INCREF
(
client
);
operation_abandon
(
op
);
CONNECTION_LOCK_DECREF
(
client
);
ber_memfree
(
client
->
c_sasl_bind_mech
.
bv_val
);
BER_BVZERO
(
&
client
->
c_sasl_bind_mech
);
}
ber_free
(
copy
,
0
);
...
...
@@ -736,6 +733,10 @@ handle_whoami_response(
return
-
1
;
}
upstream
->
c_state
=
LLOAD_C_READY
;
if
(
!
BER_BVISNULL
(
&
upstream
->
c_sasl_bind_mech
)
)
{
ber_memfree
(
upstream
->
c_sasl_bind_mech
.
bv_val
);
BER_BVZERO
(
&
upstream
->
c_sasl_bind_mech
);
}
CONNECTION_UNLOCK_INCREF
(
upstream
);
...
...
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