The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/5740
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #5738 Signed-off-by: Stéphane Graber <[email protected]>
From f6b06203a0eef7853b003cd50b619ef0fa7c61c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <[email protected]> Date: Wed, 8 May 2019 15:10:09 -0400 Subject: [PATCH] lxd/images: Properly handle invalid protocols MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #5738 Signed-off-by: Stéphane Graber <[email protected]> --- lxd/daemon_images.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lxd/daemon_images.go b/lxd/daemon_images.go index e0270d323b..cc2db2b25c 100644 --- a/lxd/daemon_images.go +++ b/lxd/daemon_images.go @@ -528,6 +528,8 @@ func (d *Daemon) ImageDownload(op *operation, server string, protocol string, ce info.CreatedAt = time.Unix(imageMeta.CreationDate, 0) info.ExpiresAt = time.Unix(imageMeta.ExpiryDate, 0) info.Properties = imageMeta.Properties + } else { + return nil, fmt.Errorf("Unsupported protocol: %v", protocol) } // Override visiblity
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
