Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Jaak Ristioja
OpenLDAP
Commits
e325a3a9
Commit
e325a3a9
authored
21 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#2795 fix hang. failure still leaves corrupt database though.
parent
dc19332b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/back-ldbm/modrdn.c
+8
-4
8 additions, 4 deletions
servers/slapd/back-ldbm/modrdn.c
with
8 additions
and
4 deletions
servers/slapd/back-ldbm/modrdn.c
+
8
−
4
View file @
e325a3a9
...
...
@@ -532,6 +532,8 @@ ldbm_back_modrdn(
"type(s)/values(s) of newrdn
\n
"
,
0
,
0
,
0
);
#endif
send_ldap_error
(
op
,
rs
,
LDAP_INVALID_DN_SYNTAX
,
"unknown type(s) used in RDN"
);
goto
return_results
;
}
...
...
@@ -564,6 +566,8 @@ ldbm_back_modrdn(
"the old_rdn type(s)/value(s)
\n
"
,
0
,
0
,
0
);
#endif
send_ldap_error
(
op
,
rs
,
LDAP_OTHER
,
"cannot parse RDN from old DN"
);
goto
return_results
;
}
}
...
...
@@ -576,6 +580,7 @@ ldbm_back_modrdn(
#endif
if
(
slap_modrdn2mods
(
op
,
rs
,
e
,
old_rdn
,
new_rdn
,
&
mod
)
!=
LDAP_SUCCESS
)
{
send_ldap_result
(
op
,
rs
);
goto
return_results
;
}
...
...
@@ -616,16 +621,14 @@ ldbm_back_modrdn(
}
/* modify memory copy of entry */
r
c_id
=
ldbm_modify_internal
(
op
,
&
mod
[
0
],
e
,
r
s
->
sr_err
=
ldbm_modify_internal
(
op
,
&
mod
[
0
],
e
,
&
rs
->
sr_text
,
textbuf
,
textlen
);
switch
(
r
c_id
)
{
switch
(
r
s
->
sr_err
)
{
case
LDAP_SUCCESS
:
break
;
case
SLAPD_ABANDON
:
/* too late ... */
rs
->
sr_err
=
rc_id
;
send_ldap_result
(
op
,
rs
);
goto
return_results
;
default:
...
...
@@ -634,6 +637,7 @@ ldbm_back_modrdn(
/* we already are in trouble ... */
;
}
send_ldap_result
(
op
,
rs
);
goto
return_results
;
}
...
...
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