47bfd4
diff -up ./libpod-1.4.2-stable2/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 ./libpod-1.4.2-stable2/vendor/github.com/containers/image/docker/docker_client.go
47bfd4
--- ./libpod-1.4.2-stable2/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214	2019-09-12 15:17:12.911343773 +0200
47bfd4
+++ ./libpod-1.4.2-stable2/vendor/github.com/containers/image/docker/docker_client.go	2019-09-12 15:17:12.912343786 +0200
47bfd4
@@ -523,11 +523,7 @@ func (c *dockerClient) getBearerToken(ct
47bfd4
 		authReq.SetBasicAuth(c.username, c.password)
47bfd4
 	}
47bfd4
 	logrus.Debugf("%s %s", authReq.Method, authReq.URL.String())
47bfd4
-	tr := tlsclientconfig.NewTransport()
47bfd4
-	// TODO(runcom): insecure for now to contact the external token service
47bfd4
-	tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
47bfd4
-	client := &http.Client{Transport: tr}
47bfd4
-	res, err := client.Do(authReq)
47bfd4
+	res, err := c.client.Do(authReq)
47bfd4
 	if err != nil {
47bfd4
 		return nil, err
47bfd4
 	}