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
David Barchiesi
OpenLDAP
Commits
f98a115b
Commit
f98a115b
authored
14 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6572
parent
34249c08
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
servers/slapd/overlays/refint.c
+26
-33
26 additions, 33 deletions
servers/slapd/overlays/refint.c
with
27 additions
and
33 deletions
CHANGES
+
1
−
0
View file @
f98a115b
...
...
@@ -11,6 +11,7 @@ OpenLDAP 2.4.23 Engineering
Fixed slapd-bdb to use memcpy instead for strcpy (ITS#6474)
Fixed slapd-ldap to return control responses (ITS#6530)
Fixed slapo-ppolicy to use Debug (ITS#6566)
Fixed slapo-refint to zero out freed DN vals (ITS#6572)
Fixed slapo-rwm to use Debug (ITS#6566)
Fixed slapo-sssvlv to use Debug (ITS#6566)
Fixed slapo-syncprov lost deletes in refresh phase (ITS#6555)
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/overlays/refint.c
+
26
−
33
View file @
f98a115b
...
...
@@ -76,7 +76,6 @@ typedef struct refint_q {
}
refint_q
;
typedef
struct
refint_data_s
{
const
char
*
message
;
/* breadcrumbs */
struct
refint_attrs_s
*
attrs
;
/* list of known attrs */
BerValue
dn
;
/* basedn in parent, */
BerValue
nothing
;
/* the nothing value, if needed */
...
...
@@ -210,21 +209,17 @@ refint_cf_gen(ConfigArgs *c)
rc
=
0
;
break
;
case
REFINT_NOTHING
:
if
(
dd
->
nothing
.
bv_val
)
ber_memfree
(
dd
->
nothing
.
bv_val
);
if
(
dd
->
nnothing
.
bv_val
)
ber_memfree
(
dd
->
nnothing
.
bv_val
);
dd
->
nothing
.
bv_len
=
0
;
dd
->
nnothing
.
bv_len
=
0
;
ch_free
(
dd
->
nothing
.
bv_val
);
ch_free
(
dd
->
nnothing
.
bv_val
);
BER_BVZERO
(
&
dd
->
nothing
);
BER_BVZERO
(
&
dd
->
nnothing
);
rc
=
0
;
break
;
case
REFINT_MODIFIERSNAME
:
if
(
dd
->
refint_dn
.
bv_val
)
ber_memfree
(
dd
->
refint_dn
.
bv_val
);
if
(
dd
->
refint_ndn
.
bv_val
)
ber_memfree
(
dd
->
refint_ndn
.
bv_val
);
dd
->
refint_dn
.
bv_len
=
0
;
dd
->
refint_ndn
.
bv_len
=
0
;
ch_free
(
dd
->
refint_dn
.
bv_val
);
ch_free
(
dd
->
refint_ndn
.
bv_val
);
BER_BVZERO
(
&
dd
->
refint_dn
);
BER_BVZERO
(
&
dd
->
refint_ndn
);
rc
=
0
;
break
;
default:
...
...
@@ -256,22 +251,26 @@ refint_cf_gen(ConfigArgs *c)
}
break
;
case
REFINT_NOTHING
:
if
(
dd
->
nothing
.
bv_val
)
ber_memfree
(
dd
->
nothing
.
bv_val
);
if
(
dd
->
nnothing
.
bv_val
)
ber_memfree
(
dd
->
nnothing
.
bv_val
);
dd
->
nothing
=
c
->
value_dn
;
dd
->
nnothing
=
c
->
value_ndn
;
rc
=
0
;
if
(
!
BER_BVISNULL
(
&
c
->
value_ndn
))
{
ch_free
(
dd
->
nothing
.
bv_val
);
ch_free
(
dd
->
nnothing
.
bv_val
);
dd
->
nothing
=
c
->
value_dn
;
dd
->
nnothing
=
c
->
value_ndn
;
rc
=
0
;
}
else
{
rc
=
ARG_BAD_CONF
;
}
break
;
case
REFINT_MODIFIERSNAME
:
if
(
dd
->
refint_dn
.
bv_val
)
ber_memfree
(
dd
->
refint_dn
.
bv_val
);
if
(
dd
->
refint_ndn
.
bv_val
)
ber_memfree
(
dd
->
refint_ndn
.
bv_val
);
dd
->
refint_dn
=
c
->
value_dn
;
dd
->
refint_ndn
=
c
->
value_ndn
;
rc
=
0
;
if
(
!
BER_BVISNULL
(
&
c
->
value_ndn
))
{
ch_free
(
&
dd
->
refint_dn
.
bv_val
);
ch_free
(
&
dd
->
refint_ndn
.
bv_val
);
dd
->
refint_dn
=
c
->
value_dn
;
dd
->
refint_ndn
=
c
->
value_ndn
;
rc
=
0
;
}
else
{
rc
=
ARG_BAD_CONF
;
}
break
;
default:
abort
();
...
...
@@ -299,7 +298,6 @@ refint_db_init(
slap_overinst
*
on
=
(
slap_overinst
*
)
be
->
bd_info
;
refint_data
*
id
=
ch_calloc
(
1
,
sizeof
(
refint_data
));
id
->
message
=
"_init"
;
on
->
on_bi
.
bi_private
=
id
;
ldap_pvt_thread_mutex_init
(
&
id
->
qmutex
);
return
(
0
);
...
...
@@ -335,7 +333,6 @@ refint_open(
{
slap_overinst
*
on
=
(
slap_overinst
*
)
be
->
bd_info
;
refint_data
*
id
=
on
->
on_bi
.
bi_private
;
id
->
message
=
"_open"
;
if
(
BER_BVISNULL
(
&
id
->
dn
))
{
if
(
BER_BVISNULL
(
&
be
->
be_nsuffix
[
0
]
))
...
...
@@ -354,7 +351,6 @@ refint_open(
** foreach configured attribute:
** free it;
** free our basedn;
** (do not) free id->message;
** reset on_bi.bi_private;
** free our config data;
**
...
...
@@ -369,7 +365,6 @@ refint_close(
slap_overinst
*
on
=
(
slap_overinst
*
)
be
->
bd_info
;
refint_data
*
id
=
on
->
on_bi
.
bi_private
;
refint_attrs
*
ii
,
*
ij
;
id
->
message
=
"_close"
;
for
(
ii
=
id
->
attrs
;
ii
;
ii
=
ij
)
{
ij
=
ii
->
next
;
...
...
@@ -870,8 +865,6 @@ refint_response(
BackendDB
*
db
=
NULL
;
refint_attrs
*
ip
;
id
->
message
=
"_refint_response"
;
/* If the main op failed or is not a Delete or ModRdn, ignore it */
if
((
op
->
o_tag
!=
LDAP_REQ_DELETE
&&
op
->
o_tag
!=
LDAP_REQ_MODRDN
)
||
rs
->
sr_err
!=
LDAP_SUCCESS
)
...
...
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