Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
f01c60dd
Commit
f01c60dd
authored
21 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS
#2538
plug leak
parent
2f064373
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/liblber/debug.c
+9
-16
9 additions, 16 deletions
libraries/liblber/debug.c
with
9 additions
and
16 deletions
libraries/liblber/debug.c
+
9
−
16
View file @
f01c60dd
...
...
@@ -68,12 +68,12 @@ static char *lutil_levels[] = {
NULL
};
static
char
*
lutil_subsys
[
LDAP_SUBSYS_NUM
]
=
{
"
global"
,
"operation"
,
"transport
"
,
"
connection"
,
"filter
"
,
"
ber
"
,
"
config
"
,
"
acl
"
,
"
cache"
,
"index
"
,
"
ldif"
,
"tools"
,
"slapd"
,
"slurpd
"
,
"
backend"
,
"back_bdb"
,
"back_ldbm
"
,
"
back_ldap"
,
"back_meta"
,
"back_mon
"
};
"
GLOBAL"
,
"OPERATION"
,
"TRANSPORT
"
,
"
CONNECTION"
,
"FILTER
"
,
"
BER
"
,
"
CONFIG
"
,
"
ACL
"
,
"
CACHE"
,
"INDEX
"
,
"
LDIF"
,
"TOOLS"
,
"SLAPD"
,
"SLURPD
"
,
"
BACKEND"
,
"BACK_BDB"
,
"BACK_LDBM
"
,
"
BACK_LDAP"
,
"BACK_META"
,
"BACK_MON
"
};
int
lutil_mnem2subsys
(
const
char
*
subsys
)
{
...
...
@@ -91,7 +91,7 @@ void lutil_set_all_backends( int level )
int
i
;
for
(
i
=
0
;
i
<
LDAP_SUBSYS_NUM
;
i
++
)
{
if
(
!
strncasecmp
(
"
back
_"
,
lutil_subsys
[
i
],
s
trlen
(
"back
_"
)
)
)
{
if
(
!
strncasecmp
(
"
BACK
_"
,
lutil_subsys
[
i
],
s
izeof
(
"BACK
_"
)
-
1
)
)
{
ldap_loglevels
[
i
]
=
level
;
}
}
...
...
@@ -112,7 +112,7 @@ static int addSubsys( const char *subsys, int level )
{
int
subsys_num
;
if
(
!
strcasecmp
(
subsys
,
"
backend
"
)
)
{
if
(
!
strcasecmp
(
subsys
,
"
BACKEND
"
)
)
{
lutil_set_all_backends
(
level
);
return
level
;
...
...
@@ -154,15 +154,8 @@ void lutil_log_int(
struct
tm
*
today
;
#endif
size_t
i
;
char
*
t_subsys
;
char
*
tmp
;
t_subsys
=
strdup
(
subsys
);
for
(
tmp
=
t_subsys
,
i
=
0
;
i
<
strlen
(
t_subsys
);
i
++
,
tmp
++
)
{
*
tmp
=
TOUPPER
(
(
unsigned
char
)
*
tmp
);
}
#ifdef LDAP_SYSLOG
/* we're configured to use syslog */
if
(
use_syslog
)
{
...
...
@@ -218,7 +211,7 @@ void lutil_log_int(
* format the output data.
*/
fprintf
(
file
,
"
\n
%s:: "
,
t_
subsys
);
fprintf
(
file
,
"
\n
%s:: "
,
subsys
);
vfprintf
(
file
,
fmt
,
vl
);
fflush
(
file
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment