Skip to content

[core] fix freerdp_get_nla_sspi_error always returning 0 on client#12574

Merged
akallabeth merged 1 commit into
FreeRDP:masterfrom
Devolutions:fix/nla-sspi-error-null-ptr
Apr 8, 2026
Merged

[core] fix freerdp_get_nla_sspi_error always returning 0 on client#12574
akallabeth merged 1 commit into
FreeRDP:masterfrom
Devolutions:fix/nla-sspi-error-null-ptr

Conversation

@thenextman
Copy link
Copy Markdown
Contributor

freerdp_get_nla_sspi_error returns 0 or accesses a null pointer on client-side connections.

The function retrieves the NLA pointer via transport_get_nla(), which returns transport->nla. This pointer is only populated on the server side (transport_accept_nla). On the client side, NLA lives on rdp->nla (created in transport_connect_nla), and transport->nla is NULL causing the assert in nla_get_sspi_error to fire or returning 0.

Instead, se rdp->nla first with a fallback to transport_get_nla(), matching the pattern already used by other NLA wrapper functions in the same file. This makes the function work correctly for both client (rdp->nla) and server (transport->nla) callers (although utility on the server side is questionable).

@freerdp-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@akallabeth akallabeth added this to the next-3.0 milestone Apr 8, 2026
Copy link
Copy Markdown
Member

@akallabeth akallabeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akallabeth
Copy link
Copy Markdown
Member

@freerdp-bot test

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

clang-tidy review says "All clean, LGTM! 👍"

@freerdp-bot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.freerdp.com//job/PullRequestTester/16451/

@akallabeth akallabeth merged commit b5cfebb into FreeRDP:master Apr 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants