Page MenuHomeFreeBSD

tftp: Correctly propagate transfer errors.
ClosedPublic

Authored by des on Mar 7 2023, 7:48 PM.
Tags
None
Referenced Files
F157478514: D38958.id118488.diff
Thu, May 21, 9:52 PM
F157438411: D38958.id.diff
Thu, May 21, 11:46 AM
Unknown Object (File)
Mon, May 18, 4:28 AM
Unknown Object (File)
Sun, May 17, 12:33 PM
Unknown Object (File)
Sun, May 17, 8:30 AM
Unknown Object (File)
Mon, Apr 27, 11:21 PM
Unknown Object (File)
Apr 13 2026, 9:29 PM
Unknown Object (File)
Apr 13 2026, 12:56 AM
Subscribers

Details

Summary

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Mar 7 2023, 7:48 PM
des created this revision.
markj added inline comments.
usr.bin/tftp/tftp.c
105

Or just add a return value to this function and use that to signal an error? Then txrx_error can be private to main.c.

des retitled this revision from tftp: Set txrx_error if and only if an error occurred. to tftp: Correctly propagate transfer errors..Mar 8 2023, 6:10 PM

Reduce use of global error flag.

des marked an inline comment as done.Mar 8 2023, 6:15 PM
markj added inline comments.
usr.bin/tftp/main.c
504–505
This revision is now accepted and ready to land.Mar 8 2023, 6:27 PM
This revision was automatically updated to reflect the committed changes.