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
James Lowden
OpenLDAP
Commits
d63287e2
Commit
d63287e2
authored
Sep 14, 2020
by
Howard Chu
Committed by
Quanah Gibson-Mount
Sep 15, 2020
Browse files
ITS#9345 fix for cmdline cookie
Previous commit could cause cmdline cookie to be ignored
parent
afc970b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
d63287e2
...
...
@@ -1069,15 +1069,17 @@ do_syncrep1(
}
}
/* ITS#6367: recreate the cookie so it has our SID, not our peer's */
ch_free
(
si
->
si_syncCookie
.
octet_str
.
bv_val
);
BER_BVZERO
(
&
si
->
si_syncCookie
.
octet_str
);
/* Look for contextCSN from syncprov overlay. */
check_syncprov
(
op
,
si
);
if
(
BER_BVISNULL
(
&
si
->
si_syncCookie
.
octet_str
))
slap_compose_sync_cookie
(
NULL
,
&
si
->
si_syncCookie
.
octet_str
,
si
->
si_syncCookie
.
ctxcsn
,
si
->
si_syncCookie
.
rid
,
si
->
si_syncCookie
.
sid
,
NULL
);
if
(
!
cmdline_cookie_found
)
{
/* ITS#6367: recreate the cookie so it has our SID, not our peer's */
ch_free
(
si
->
si_syncCookie
.
octet_str
.
bv_val
);
BER_BVZERO
(
&
si
->
si_syncCookie
.
octet_str
);
/* Look for contextCSN from syncprov overlay. */
check_syncprov
(
op
,
si
);
if
(
BER_BVISNULL
(
&
si
->
si_syncCookie
.
octet_str
))
slap_compose_sync_cookie
(
NULL
,
&
si
->
si_syncCookie
.
octet_str
,
si
->
si_syncCookie
.
ctxcsn
,
si
->
si_syncCookie
.
rid
,
si
->
si_syncCookie
.
sid
,
NULL
);
}
}
Debug
(
LDAP_DEBUG_SYNC
,
"do_syncrep1: %s starting refresh (sending cookie=%s)
\n
"
,
...
...
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