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
62295c09
Commit
62295c09
authored
Nov 18, 2009
by
Quanah Gibson-Mount
Browse files
More for prev commit - only set if URL was provided.
parent
f0c6ac7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/open.c
View file @
62295c09
...
...
@@ -271,7 +271,8 @@ ldap_init_fd(
ldap_unbind_ext
(
ld
,
NULL
,
NULL
);
return
(
LDAP_NO_MEMORY
);
}
conn
->
lconn_server
=
ldap_url_dup
(
ld
->
ld_options
.
ldo_defludp
);
if
(
url
)
conn
->
lconn_server
=
ldap_url_dup
(
ld
->
ld_options
.
ldo_defludp
);
ber_sockbuf_ctrl
(
conn
->
lconn_sb
,
LBER_SB_OPT_SET_FD
,
&
fd
);
ld
->
ld_defconn
=
conn
;
++
ld
->
ld_defconn
->
lconn_refcnt
;
/* so it never gets closed/freed */
...
...
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