Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
d316b89b
Commit
d316b89b
authored
Sep 02, 2007
by
Howard Chu
Browse files
Fix schema undo crash
parent
2437abac
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/bconfig.c
View file @
d316b89b
...
...
@@ -1149,10 +1149,14 @@ config_generic(ConfigArgs *c) {
break
;
case
CFG_OC
:
{
CfEntryInfo
*
ce
=
c
->
ca_entry
->
e_private
;
/* can't modify the hardcoded schema */
if
(
ce
->
ce_parent
->
ce_type
==
Cft_Global
)
return
1
;
CfEntryInfo
*
ce
;
/* Can be NULL when undoing a failed add */
if
(
c
->
ca_entry
)
{
ce
=
c
->
ca_entry
->
e_private
;
/* can't modify the hardcoded schema */
if
(
ce
->
ce_parent
->
ce_type
==
Cft_Global
)
return
1
;
}
}
cfn
=
c
->
private
;
if
(
c
->
valx
<
0
)
{
...
...
@@ -1183,10 +1187,14 @@ config_generic(ConfigArgs *c) {
break
;
case
CFG_ATTR
:
{
CfEntryInfo
*
ce
=
c
->
ca_entry
->
e_private
;
/* can't modify the hardcoded schema */
if
(
ce
->
ce_parent
->
ce_type
==
Cft_Global
)
return
1
;
CfEntryInfo
*
ce
;
/* Can be NULL when undoing a failed add */
if
(
c
->
ca_entry
)
{
ce
=
c
->
ca_entry
->
e_private
;
/* can't modify the hardcoded schema */
if
(
ce
->
ce_parent
->
ce_type
==
Cft_Global
)
return
1
;
}
}
cfn
=
c
->
private
;
if
(
c
->
valx
<
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment