mirror of
https://github.com/docker/cli.git
synced 2026-01-26 15:41:42 +03:00
This fix tries to fix the http panics caused by container deletion with empty names in #22210. The issue was because when an empty string was passed, `GetByName()` tried to access the first element of the name string without checking the length. A length check has been added. A test case for #22210 has been added. This fix fixes #22210. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Upstream-commit: 9d8071a74db20556d0fc1b6ef3270326b3583de9 Component: engine
55 KiB
55 KiB