Skip to content
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

nsapi - Fix missing NSAPI_UNSPEC check in gethostbyname for ip literals #3232

Merged
merged 2 commits into from
Nov 10, 2016

Conversation

geky
Copy link
Contributor

@geky geky commented Nov 9, 2016

There is a missing check for NSAPI_UNSPEC in gethostbyname, this causes all ip literals to be rejected by default, which is definitely not the correct behaviour. May have been missed since the unspec and ip literal check prs were introduced in parallel.

cc @c1728p9, @kjbracey-arm

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 9, 2016

cc @yogpan01

@yogpan01
Copy link
Contributor

yogpan01 commented Nov 9, 2016

+1 , @SeppoTakalo Has already verified this fix with 6LoWPAN interface.

@SeppoTakalo SeppoTakalo mentioned this pull request Nov 9, 2016
1 task
@geky
Copy link
Contributor Author

geky commented Nov 9, 2016

Just a heads up, I'm working on adding a set of dns tests to avoid this regression in the future. Will add to this pr.

@SeppoTakalo SeppoTakalo mentioned this pull request Nov 9, 2016
1 task
@SeppoTakalo
Copy link
Contributor

+1

- test_dns_query
- test_dns_query_pref
- test_dns_literal
- test_dns_literal_pref
@geky geky force-pushed the nsapi-fix-gethostbyname-unspec-literal branch from 10cb37c to b04a8da Compare November 9, 2016 18:11
@geky
Copy link
Contributor Author

geky commented Nov 9, 2016

Added gethostbyname tests
/morph test

@geky geky added needs: CI and removed needs: work labels Nov 9, 2016
@mbed-bot
Copy link

mbed-bot commented Nov 9, 2016

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1032

Test failed!

@geky
Copy link
Contributor Author

geky commented Nov 9, 2016

/morph test

@mbed-bot
Copy link

mbed-bot commented Nov 9, 2016

Result: ABORTED

Your command has finished executing! Here's what you wrote!

/morph test

@geky
Copy link
Contributor Author

geky commented Nov 9, 2016

/morph test-nightly

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1037

All builds and test passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants