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
Nadezhda Ivanova
OpenLDAP
Commits
e2b43660
Commit
e2b43660
authored
Jan 21, 2015
by
Howard Chu
Browse files
ITS#8028 fix ldap_new_connection
parent
c32e7476
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/request.c
View file @
e2b43660
...
...
@@ -507,6 +507,13 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc **srvlist, int use_ldsb,
}
lc
->
lconn_server
=
ldap_url_dup
(
srv
);
if
(
!
lc
->
lconn_server
)
{
if
(
!
use_ldsb
)
ber_sockbuf_free
(
lc
->
lconn_sb
);
LDAP_FREE
(
(
char
*
)
lc
);
ld
->
ld_errno
=
LDAP_NO_MEMORY
;
return
(
NULL
);
}
}
lc
->
lconn_status
=
async
?
LDAP_CONNST_CONNECTING
:
LDAP_CONNST_CONNECTED
;
...
...
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