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
181e5b2e
Commit
181e5b2e
authored
Jun 24, 2021
by
Konstantin Andreev
Committed by
Quanah Gibson-Mount
Jun 24, 2021
Browse files
ITS
#9590
libldap: fix missing unlock on connection alloc failure
parent
c2d0f147
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/open.c
View file @
181e5b2e
...
...
@@ -350,6 +350,7 @@ ldap_init_fd(
/* Attach the passed socket as the LDAP's connection */
conn
=
ldap_new_connection
(
ld
,
NULL
,
1
,
0
,
NULL
,
0
,
0
);
if
(
conn
==
NULL
)
{
LDAP_MUTEX_UNLOCK
(
&
ld
->
ld_conn_mutex
);
ldap_unbind_ext
(
ld
,
NULL
,
NULL
);
return
(
LDAP_NO_MEMORY
);
}
...
...
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