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

net/rdcli_common: fix EP name generation #8905

Merged
merged 1 commit into from
Apr 10, 2018

Conversation

haukepetersen
Copy link
Contributor

Contribution description

When doing the last fixes to #7406, an un-noticed bug slept in -> the generation of the EP name is in master now terminated in the middle of the string, so the actual ID part or the name is dropped.

This PR fixes this and also simplifies the code slightly.

Issues/PRs references

fix for #7406

@haukepetersen haukepetersen added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Apr 10, 2018
Copy link
Member

@bergzand bergzand left a comment

Choose a reason for hiding this comment

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

Tested, fixes issue.
ACK!

@bergzand
Copy link
Member

Travis complaints ignored as with #7406

@bergzand bergzand merged commit d6780e3 into RIOT-OS:master Apr 10, 2018
@bergzand
Copy link
Member

@haukepetersen I noticed that the endpoint name generation doesn't work correctly for an odd suffix length (suffix length of 3 results in an actual length of 2 here). As it is not directly configurable by the end user and the issue is already present in the original implementation I don't want to complain about it here. Do you want an issue for it or leave it as it is? :)

@haukepetersen
Copy link
Contributor Author

good point. How about #8906

@miri64
Copy link
Member

miri64 commented Apr 10, 2018

Travis complaints ignored as with #7406

This could have been avoided by having a cppcheck-suppress comment to mark the false positive (even if it is due to an older version of [edit]cppcheck on[/edit] Travis) ;-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants