|
|
6a197b |
diff -up ./libpod-921f98f8795eb9fcb19ce581020cfdeff6dee09f/cri-o-9b1f0a08285a7f74b21cc9b6bfd98a48905a7ba2/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 ./libpod-921f98f8795eb9fcb19ce581020cfdeff6dee09f/cri-o-9b1f0a08285a7f74b21cc9b6bfd98a48905a7ba2/vendor/github.com/containers/image/docker/docker_client.go
|
|
|
6a197b |
--- ./libpod-921f98f8795eb9fcb19ce581020cfdeff6dee09f/cri-o-9b1f0a08285a7f74b21cc9b6bfd98a48905a7ba2/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 2019-09-12 15:16:38.812884788 +0200
|
|
|
6a197b |
+++ ./libpod-921f98f8795eb9fcb19ce581020cfdeff6dee09f/cri-o-9b1f0a08285a7f74b21cc9b6bfd98a48905a7ba2/vendor/github.com/containers/image/docker/docker_client.go 2019-09-12 15:16:38.813884801 +0200
|
|
|
6a197b |
@@ -530,11 +530,7 @@ func (c *dockerClient) getBearerToken(ct
|
|
|
6a197b |
authReq.SetBasicAuth(c.username, c.password)
|
|
|
6a197b |
}
|
|
|
6a197b |
logrus.Debugf("%s %s", authReq.Method, authReq.URL.String())
|
|
|
6a197b |
- tr := tlsclientconfig.NewTransport()
|
|
|
6a197b |
- // TODO(runcom): insecure for now to contact the external token service
|
|
|
6a197b |
- tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
|
|
6a197b |
- client := &http.Client{Transport: tr}
|
|
|
6a197b |
- res, err := client.Do(authReq)
|
|
|
6a197b |
+ res, err := c.client.Do(authReq)
|
|
|
6a197b |
if err != nil {
|
|
|
6a197b |
return nil, err
|
|
|
6a197b |
}
|
|
|
6a197b |
diff -up ./libpod-921f98f8795eb9fcb19ce581020cfdeff6dee09f/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 ./libpod-921f98f8795eb9fcb19ce581020cfdeff6dee09f/vendor/github.com/containers/image/docker/docker_client.go
|
|
|
6a197b |
--- ./libpod-921f98f8795eb9fcb19ce581020cfdeff6dee09f/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 2019-09-12 15:16:38.815884828 +0200
|
|
|
6a197b |
+++ ./libpod-921f98f8795eb9fcb19ce581020cfdeff6dee09f/vendor/github.com/containers/image/docker/docker_client.go 2019-09-12 15:16:38.816884841 +0200
|
|
|
6a197b |
@@ -530,11 +530,7 @@ func (c *dockerClient) getBearerToken(ct
|
|
|
6a197b |
authReq.SetBasicAuth(c.username, c.password)
|
|
|
6a197b |
}
|
|
|
6a197b |
logrus.Debugf("%s %s", authReq.Method, authReq.URL.String())
|
|
|
6a197b |
- tr := tlsclientconfig.NewTransport()
|
|
|
6a197b |
- // TODO(runcom): insecure for now to contact the external token service
|
|
|
6a197b |
- tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
|
|
6a197b |
- client := &http.Client{Transport: tr}
|
|
|
6a197b |
- res, err := client.Do(authReq)
|
|
|
6a197b |
+ res, err := c.client.Do(authReq)
|
|
|
6a197b |
if err != nil {
|
|
|
6a197b |
return nil, err
|
|
|
6a197b |
}
|