From: Nick Porter Date: Tue, 1 Nov 2022 09:36:52 +0000 (+0000) Subject: Send correct cookie X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e07cc7cde2bdf557f363424ff8ecbc9a49d8acd;p=thirdparty%2Ffreeradius-server.git Send correct cookie sync->cookie is the latest received. sync_packet_ctx->cookie is the one for the checkpoint we've reached. --- diff --git a/src/listen/ldap_sync/proto_ldap_sync_ldap.c b/src/listen/ldap_sync/proto_ldap_sync_ldap.c index 8f41f713852..38bf0a30c2c 100644 --- a/src/listen/ldap_sync/proto_ldap_sync_ldap.c +++ b/src/listen/ldap_sync/proto_ldap_sync_ldap.c @@ -256,7 +256,7 @@ int ldap_sync_cookie_send(sync_packet_ctx_t *sync_packet_ctx) fr_pair_list_t pairs; fr_pair_t *vp; TALLOC_CTX *local = NULL; - uint8_t *cookie = sync->cookie; + uint8_t *cookie = sync_packet_ctx->cookie; if (sync_packet_ctx->status != SYNC_PACKET_PENDING) return 0; sync_packet_ctx->status = SYNC_PACKET_PREPARING;