Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
out_s3: fix NULL dereference when upload_id is unset
When upload_id is not set in create_multipart_upload() (which can occur in some failure modes), subsequent retries will segfault when checking this ID in complete_multipart_upload(). This commit simply checks that the upload ID has been set and returns the usual error code instead of crashing if not. It also logs an error message for the user. Discussed in #3838. Signed-off-by: Aaron Jacobs <[email protected]>
- Loading branch information