In sftp_client.c, do_upload() function, the 'id' variable is used for both the sent and the received message ids, this corrupts the id of the messages to send and randomly generates upload failures. The fix is to use another variable to extract the received message id, status_id, as done in do_download()
Created attachment 58 [details] Fix for id clobbering
Thanks for spotting this - can you please try the attached patch?
Fix committed to OpenBSD CVS
Mass change of RESOLVED bugs to CLOSED