Skip to content

Fix nc not resetting when server issues new nonce without stale=true.#316

Open
morbit85 wants to merge 1 commit intomasterfrom
dmitry/fix_nc_reset
Open

Fix nc not resetting when server issues new nonce without stale=true.#316
morbit85 wants to merge 1 commit intomasterfrom
dmitry/fix_nc_reset

Conversation

@morbit85
Copy link
Collaborator

When a server challenged with a new nonce but omitted stale=true, the nonce count (nc) carried over from the previous nonce instead of resetting to 1. Detect nonce changes by comparing the new nonce against the stored one, and regenerate cnonce/reset nc accordingly.

@morbit85 morbit85 requested a review from andywolk February 25, 2026 14:52
@morbit85 morbit85 added the bug Something isn't working label Feb 25, 2026
When a server challenged with a new nonce but omitted stale=true,
the nonce count (nc) carried over from the previous nonce instead
of resetting to 1. Detect nonce changes by comparing the new nonce
against the stored one, and regenerate cnonce/reset nc accordingly.
@morbit85 morbit85 force-pushed the dmitry/fix_nc_reset branch from c66ce91 to c697a78 Compare February 25, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant