Skip to content

sasl: fix zero-length response encoding.#22218

Closed
monnerat wants to merge 1 commit into
curl:masterfrom
monnerat:sasl-ir
Closed

sasl: fix zero-length response encoding.#22218
monnerat wants to merge 1 commit into
curl:masterfrom
monnerat:sasl-ir

Conversation

@monnerat

Copy link
Copy Markdown
Contributor

A sasl zero-length normal response is an empty string, unlike an initial response.
Since the encoding of a zero-length initial response is protocol dependent, move its handling to the protocol-specific sendauth procedure. Similarly, do not check for an '=' server message, as this should normally never occur.

Update the erroneous tests accordingly.

A sasl zero-length normal response is an empty string, unlike an
initial response.
Since the encoding of a zero-length initial response is protocol
dependent, move its handling to the protocol-specific sendauth procedure.
Similarly, do not check for an '=' server message, as this should
normally never occur.

Update the erroneous tests accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants