spiegel_podman/pkg/api/handlers
crawfordxx e5fe3fdf69
api: fix missing return after error in SystemCheck handler
In the SystemCheck HTTP handler, when parsing the
unreferenced_layer_max_age query parameter fails, the error response is
sent but execution continues to `unreferencedLayerMaximumAge = &duration`
where `duration` is the zero value. This causes the system check to run
with a zero duration instead of returning the 400 error to the client.

Add the missing `return` after the error response.

Fixes #28350

Signed-off-by: crawfordxx <crawfordxx@users.noreply.github.com>
(cherry picked from commit 29d80a26af)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:51 +02:00
..
compat Add ulimits to podman update API 2026-02-06 15:36:47 -05:00
libpod api: fix missing return after error in SystemCheck handler 2026-04-09 14:23:51 +02:00
swagger Add DELETE /libpod/quadlets 2026-02-05 14:55:46 +01:00
types Bump Go module to v5 2024-02-08 09:35:39 -05:00
utils Add POST /libpod/quadlets 2026-02-05 14:53:34 +01:00
decoder.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
types.go Add ulimits to podman update API 2026-02-06 15:36:47 -05:00