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
cb3248f1
Commit
cb3248f1
authored
Sep 01, 2006
by
Pierangelo Masarati
Browse files
cleanup
parent
9e8725a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/request.c
View file @
cb3248f1
...
...
@@ -420,6 +420,7 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc **srvlist, int use_ldsb,
}
ldap_free_urldesc
(
srvfunc
);
}
}
else
{
int
msgid
,
rc
;
struct
berval
passwd
=
BER_BVNULL
;
...
...
@@ -599,7 +600,10 @@ ldap_free_connection( LDAP *ld, LDAPConn *lc, int force, int unbind )
}
#endif
/* FIXME: is this at all possible? */
/* FIXME: is this at all possible?
* ldap_ld_free() in unbind.c calls ldap_free_connection()
* with force == 1 __after__ explicitly calling
* ldap_free_request() on all requests */
if
(
force
)
{
LDAPRequest
*
lr
;
...
...
servers/slapd/attr.c
View file @
cb3248f1
...
...
@@ -78,8 +78,7 @@ Attribute *
attr_alloc
(
AttributeDescription
*
ad
)
{
Attribute
*
a
;
ldap_pvt_thread_mutex_lock
(
&
attr_mutex
);
if
(
!
attr_list
)
attr_prealloc
(
CHUNK_SIZE
);
...
...
servers/slapd/back-monitor/conn.c
View file @
cb3248f1
...
...
@@ -181,7 +181,8 @@ monitor_subsys_conn_update(
for
(
n
=
0
,
c
=
connection_first
(
&
connindex
);
c
!=
NULL
;
n
++
,
c
=
connection_next
(
c
,
&
connindex
)
)
{
n
++
,
c
=
connection_next
(
c
,
&
connindex
)
)
{
/* No Op */
;
}
connection_done
(
c
);
...
...
@@ -426,9 +427,6 @@ monitor_subsys_conn_create(
{
monitor_info_t
*
mi
=
(
monitor_info_t
*
)
op
->
o_bd
->
be_private
;
Connection
*
c
;
int
connindex
;
monitor_entry_t
*
mp
;
int
rc
=
SLAP_CB_CONTINUE
;
monitor_subsys_t
*
ms
;
...
...
@@ -441,14 +439,18 @@ monitor_subsys_conn_create(
*
ep
=
NULL
;
if
(
ndn
==
NULL
)
{
Entry
*
e
=
NULL
,
*
e_tmp
=
NULL
;
Connection
*
c
;
int
connindex
;
Entry
*
e
=
NULL
,
*
e_tmp
=
NULL
;
/* create all the children of e_parent */
for
(
c
=
connection_first
(
&
connindex
);
c
!=
NULL
;
c
=
connection_next
(
c
,
&
connindex
)
)
{
monitor_entry_t
*
mp
;
if
(
conn_create
(
mi
,
c
,
&
e
,
ms
)
!=
SLAP_CB_CONTINUE
||
e
==
NULL
)
{
...
...
@@ -473,6 +475,8 @@ monitor_subsys_conn_create(
*
ep
=
e
;
}
else
{
Connection
*
c
;
int
connindex
;
unsigned
long
connid
;
char
*
next
=
NULL
;
static
struct
berval
nconn_bv
=
BER_BVC
(
"cn=connection "
);
...
...
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