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
72ca7112
Commit
72ca7112
authored
Jan 16, 2018
by
Ondřej Kuzník
Committed by
Ondřej Kuzník
Nov 17, 2020
Browse files
Do not compare c_auth when NULL
parent
ee893ae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/bind.c
View file @
72ca7112
...
...
@@ -471,12 +471,14 @@ handle_bind_response(
client
->
c_state
=
LLOAD_C_READY
;
client
->
c_type
=
LLOAD_C_OPEN
;
client
->
c_pin_id
=
0
;
if
(
result
!=
LDAP_SUCCESS
)
{
ber_memfree
(
client
->
c_auth
.
bv_val
);
BER_BVZERO
(
&
client
->
c_auth
);
}
else
if
(
!
ber_bvstrcasecmp
(
&
client
->
c_auth
,
&
lloadd_identity
)
)
{
client
->
c_type
=
LLOAD_C_PRIVILEGED
;
if
(
!
BER_BVISNULL
(
&
client
->
c_auth
)
)
{
if
(
result
!=
LDAP_SUCCESS
)
{
ber_memfree
(
client
->
c_auth
.
bv_val
);
BER_BVZERO
(
&
client
->
c_auth
);
}
else
if
(
!
ber_bvstrcasecmp
(
&
client
->
c_auth
,
&
lloadd_identity
)
)
{
client
->
c_type
=
LLOAD_C_PRIVILEGED
;
}
}
if
(
!
BER_BVISNULL
(
&
client
->
c_sasl_bind_mech
)
)
{
ber_memfree
(
client
->
c_sasl_bind_mech
.
bv_val
);
...
...
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