mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user