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
5d83746a
Commit
5d83746a
authored
19 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
improve previous commit; same fix required by objectClasses (ITS#4185)
parent
4d3fe817
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/at.c
+19
-19
19 additions, 19 deletions
servers/slapd/at.c
servers/slapd/oc.c
+24
-0
24 additions, 0 deletions
servers/slapd/oc.c
with
43 additions
and
19 deletions
servers/slapd/at.c
+
19
−
19
View file @
5d83746a
...
...
@@ -394,27 +394,27 @@ at_insert(
ldap_memfree
(
air
);
if
(
rc
)
{
while
(
names
>
sat
->
sat_names
)
{
struct
aindexrec
tmpair
;
while
(
names
>
sat
->
sat_names
)
{
names
--
;
ber_str2bv
(
*
names
,
0
,
0
,
&
tmpair
.
air_
name
)
;
tmpair
.
air_at
=
sat
;
air
=
avl_delete
(
&
attr_index
,
(
caddr_t
)
&
tmpair
,
attr_index_cmp
);
assert
(
air
!=
NULL
);
ldap_memfree
(
air
);
}
if
(
sat
->
sat_oid
)
{
ber_str2bv
(
sat
->
sat_oid
,
0
,
0
,
&
tmpair
.
air_name
);
tmpair
.
air_
at
=
sat
;
air
=
avl_delete
(
&
attr_index
,
(
caddr_t
)
&
tmpair
,
attr_index
_cmp
);
assert
(
air
!=
NULL
);
ldap_memfree
(
air
);
}
names
--
;
ber_str2bv
(
*
names
,
0
,
0
,
&
tmpair
.
air_name
)
;
tmpair
.
air_
at
=
sat
;
air
=
(
struct
aindexrec
*
)
avl_delete
(
&
attr_index
,
(
caddr_t
)
&
tmpair
,
attr_index
_cmp
);
assert
(
air
!=
NULL
);
ldap_memfree
(
air
);
}
if
(
sat
->
sat_oid
)
{
struct
aindexrec
tmpair
;
ber_str2bv
(
sat
->
sat_oid
,
0
,
0
,
&
tmpair
.
air_
name
)
;
tmpair
.
air_at
=
sat
;
air
=
(
struct
aindexrec
*
)
avl_delete
(
&
attr_index
,
(
caddr_t
)
&
tmpair
,
attr_index_cmp
);
assert
(
air
!=
NULL
);
ldap_memfree
(
air
);
}
return
rc
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/oc.c
+
24
−
0
View file @
5d83746a
...
...
@@ -524,6 +524,30 @@ oc_insert(
rc
=
oc_check_dup
(
old_soc
,
soc
);
ldap_memfree
(
oir
);
while
(
names
>
soc
->
soc_names
)
{
struct
oindexrec
tmpoir
;
names
--
;
ber_str2bv
(
*
names
,
0
,
0
,
&
tmpoir
.
oir_name
);
tmpoir
.
oir_oc
=
soc
;
oir
=
(
struct
oindexrec
*
)
avl_delete
(
&
oc_index
,
(
caddr_t
)
&
tmpoir
,
oc_index_cmp
);
assert
(
oir
!=
NULL
);
ldap_memfree
(
oir
);
}
if
(
soc
->
soc_oid
)
{
struct
oindexrec
tmpoir
;
ber_str2bv
(
soc
->
soc_oid
,
0
,
0
,
&
tmpoir
.
oir_name
);
tmpoir
.
oir_oc
=
soc
;
oir
=
(
struct
oindexrec
*
)
avl_delete
(
&
oc_index
,
(
caddr_t
)
&
tmpoir
,
oc_index_cmp
);
assert
(
oir
!=
NULL
);
ldap_memfree
(
oir
);
}
return
rc
;
}
...
...
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