-
Notifications
You must be signed in to change notification settings - Fork 284
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
Always kill invalid file transfers when receiving file controls. #390
Conversation
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. toxcore/Messenger.c, line 1616 at r1 (raw file):
toxcore/Messenger.c, line 1638 at r1 (raw file):
receive_send needs to become a bool. Comments from Reviewable |
5955de9
to
7c4dd3b
Compare
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions. toxcore/Messenger.c, line 1616 at r1 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Maybe, but then we should rename it everywhere. Not in this PR. toxcore/Messenger.c, line 1638 at r1 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Not at this point though. There is nothing before this call that checks whether the value is in Comments from Reviewable |
7c4dd3b
to
4318ad7
Compare
I'm not happy with the Reviewed 1 of 1 files at r1. Comments from Reviewable |
Reviewed 1 of 1 files at r1. Comments from Reviewable |
4318ad7
to
6f5e924
Compare
Previously, toxcore would send a kill control to the friend only if the file control was valid. Determining which file transfer is used does not depend on the specific file control. We can always kill it in that case. Also, added some logging for file control logic, since there is no other feedback on error (failure of the file control handler is swallowed).
6f5e924
to
2ba967d
Compare
Reviewed 1 of 1 files at r2. Comments from Reviewable |
Reviewed 1 of 1 files at r2. Comments from Reviewable |
Comments from Reviewable |
Previously, toxcore would send a kill control to the friend only if the
file control was valid. Determining which file transfer is used does not
depend on the specific file control. We can always kill it in that case.
Also, added some logging for file control logic, since there is no other
feedback on error (failure of the file control handler is swallowed).
This change is