mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-07 05:42:42 +00:00
Fix nil pointer dereference on S3 publishing. #338
This commit is contained in:
+4
-1
@@ -302,7 +302,10 @@ func (storage *PublishedStorage) internalFilelist(prefix string, hidePlusWorkaro
|
||||
md5s = append(md5s, strings.Replace(*key.ETag, "\"", "", -1))
|
||||
}
|
||||
if contents.IsTruncated != nil && *contents.IsTruncated {
|
||||
marker = *contents.NextMarker
|
||||
marker = ""
|
||||
if contents.NextMarker != nil {
|
||||
marker = *contents.NextMarker
|
||||
}
|
||||
if marker == "" {
|
||||
// From the s3 docs: If response does not include the
|
||||
// NextMarker and it is truncated, you can use the value of the
|
||||
|
||||
Reference in New Issue
Block a user