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

Ensure valid messages are returned from FromNet() #74

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

ingar
Copy link
Contributor

@ingar ingar commented Sep 5, 2020

Summary

Fix cases where we could be returning a nil datatransfer.Message when deserializing malformed payloads.

Resolves #73

@ingar ingar force-pushed the fix/malformed-transfer-message-handling branch from 19aa70a to f26ea42 Compare September 5, 2020 03:58
@hannahhoward hannahhoward merged commit 4b23050 into master Sep 9, 2020
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.

FromNet should return nil/err instead of nil/nil when there is no data present
2 participants