Fix a panic in the S3 uploader (#29412)

The truncated field is a *bool and should not be dereferenced
without first checking for nil.
This commit is contained in:
Zac Bergquist
2023-07-24 14:25:30 +00:00
committed by GitHub
parent f0756bdd65
commit 4890670775
+1 -1
View File
@@ -201,7 +201,7 @@ func (h *Handler) ListUploads(ctx context.Context) ([]events.StreamUpload, error
Initiated: *upload.Initiated,
})
}
if !*re.IsTruncated {
if !aws.BoolValue(re.IsTruncated) {
break
}
keyMarker = re.KeyMarker