]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Send correct cookie
authorNick Porter <nick@portercomputing.co.uk>
Tue, 1 Nov 2022 09:36:52 +0000 (09:36 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 1 Nov 2022 09:36:52 +0000 (09:36 +0000)
sync->cookie is the latest received.
sync_packet_ctx->cookie is the one for the checkpoint we've reached.

src/listen/ldap_sync/proto_ldap_sync_ldap.c

index 8f41f7138528725af9d7ee440b91404d789c3924..38bf0a30c2cd191791e05e618a6db38649c855fe 100644 (file)
@@ -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;