Bug: --delete manifest sending ignores send_status / send_int / send_str failures #163
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When
--deleteis enabled, bothsend_files()andsend_chunks_multithreaded()send the manifest by callingsend_status(),send_int(), andsend_str()but do not check their return values. If the connection fails mid-manifest, the sender continues and then sendsSTATUS_FINISHED, desynchronizing the protocol and potentially leaving the receiver in a bad state.Location
src/client/client_send.c:221-225(multithreaded sender)src/client/client_send.c:408-412(single-threaded sender)Suggested fix
send_status()/send_int()/send_str()return in the manifest block.bool.Severity
Medium
Category
bug
This issue was automatically generated by the issue-creator agent.