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
b70b48c4
Commit
b70b48c4
authored
Oct 30, 2009
by
Quanah Gibson-Mount
Browse files
don't dereference pointer in case of error
parent
9ef77c8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/monitor.c
View file @
b70b48c4
...
@@ -280,8 +280,9 @@ bdb_monitor_initialize( void )
...
@@ -280,8 +280,9 @@ bdb_monitor_initialize( void )
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
bdb_monitor_initialize
)
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
bdb_monitor_initialize
)
": register_at failed
\n
"
,
": register_at failed
\n
"
,
0
,
0
,
0
);
0
,
0
,
0
);
}
else
{
(
*
s_at
[
i
].
ad
)
->
ad_type
->
sat_flags
|=
SLAP_AT_HIDE
;
}
}
(
*
s_at
[
i
].
ad
)
->
ad_type
->
sat_flags
|=
SLAP_AT_HIDE
;
}
}
for
(
i
=
0
;
s_oc
[
i
].
desc
!=
NULL
;
i
++
)
{
for
(
i
=
0
;
s_oc
[
i
].
desc
!=
NULL
;
i
++
)
{
...
@@ -290,8 +291,9 @@ bdb_monitor_initialize( void )
...
@@ -290,8 +291,9 @@ bdb_monitor_initialize( void )
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
bdb_monitor_initialize
)
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
bdb_monitor_initialize
)
": register_oc failed
\n
"
,
": register_oc failed
\n
"
,
0
,
0
,
0
);
0
,
0
,
0
);
}
else
{
(
*
s_oc
[
i
].
oc
)
->
soc_flags
|=
SLAP_OC_HIDE
;
}
}
(
*
s_oc
[
i
].
oc
)
->
soc_flags
|=
SLAP_OC_HIDE
;
}
}
return
0
;
return
0
;
...
...
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