Repository navigation
anyconnect: treat an empty CSD wait response as scan completion - #2
Merged
Merged
Conversation
Author
|
Added a follow-up commit: the same |
nekohasekai
force-pushed
the
fix/csd-wait-empty
branch
from
November 3, 2026 04:23
f2187f5 to
d47571a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
With a Cisco ASA head-end that answers the hostscan wait endpoint
(
/+CSCOE+/sdesktop/wait.html) with HTTP 200 and an empty body after theCSD report has been accepted (
scan.xml→<hostscan><status>TOKEN_SUCCESS</status></hostscan>),authentication always fails with:
The report is stored server-side (subsequent aggregate-auth requests still
carry host-scan), but the client aborts, so CSD-protected tunnel groups are
unusable even with a working
csd.wrapper_pathscript.Upstream behavior
openconnect (auth.c,
cstp_obtain_cookie, Step 4) treats an empty wait-pagebody as completion and proceeds to re-request the auth form:
Observed with the real client: the empty-body case is the normal "scan
finished" answer on this ASA; HTML-refresh pages only appear while scanning
is still in progress.
Fix
Treat a whitespace-only 200 body as scan completion (patch attached:
csd-wait-empty.patch):Environment
9.21 CLI passes the same flow (empty wait → proceeds → SSO form), the
sing-openconnect port aborts.