Skip to content

Correct nsapi_dns_query_multiple() #5946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

betzw
Copy link
Contributor

@betzw betzw commented Jan 26, 2018

Description

All the public overloads of nsapi_dns_query_multiple() are broken. They are documented as returning the number of addresses found on success. However, the return value of dns_scan_response() is not passed down, only its sign is checked and the function always returns NSAPI_ERROR_OK, i.e. zero.

This is especially disastrous for all the overloads that take SocketAddress * as argument; this overload expects the static variant to work as documented, which causes none of the addresses to be copied.

This PR resolves this issue (#5921)

Status

READY

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 26, 2018

@betzw Thank you, I was just reviewing 5945 that is addressing the same (few minutes earlier PR).

@kjbracey-arm

@betzw
Copy link
Contributor Author

betzw commented Jan 26, 2018

Closed in favor of #5945

@betzw betzw closed this Jan 26, 2018
@sg- sg- removed the needs: review label Jan 26, 2018
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