diff options
author | Jelle van der Waa <jvanderwaa@redhat.com> | 2021-09-14 22:23:01 +0200 |
---|---|---|
committer | Jelle van der Waa <jvanderwaa@redhat.com> | 2021-09-15 09:14:34 +0200 |
commit | 9b04e17893dbf91326c0f68ce7627d7bb07cf515 (patch) | |
tree | d63dd1378a675d81945c628502e88f8faf866912 /test/apiv2/test-apiv2 | |
parent | 323fe363134ba81ed33c24d7cce85aa0c37ab59d (diff) | |
download | podman-9b04e17893dbf91326c0f68ce7627d7bb07cf515.tar.gz podman-9b04e17893dbf91326c0f68ce7627d7bb07cf515.tar.bz2 podman-9b04e17893dbf91326c0f68ce7627d7bb07cf515.zip |
api: handle nil pointer dereference in rest endpoints
When `?all=garbage` is passed to an API endpoint schema validation fails
and err is nil. Wrapf uses err to create an error message causing a nil
pointer dereference.
Signed-off-by: Jelle van der Waa <jvanderwaa@redhat.com>
Diffstat (limited to 'test/apiv2/test-apiv2')
-rwxr-xr-x | test/apiv2/test-apiv2 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/apiv2/test-apiv2 b/test/apiv2/test-apiv2 index e1bf28bae..c644b9578 100755 --- a/test/apiv2/test-apiv2 +++ b/test/apiv2/test-apiv2 @@ -327,6 +327,7 @@ function start_service() { die "Cannot start service on non-localhost ($HOST)" fi + echo $WORKDIR $PODMAN_BIN --root $WORKDIR/server_root --syslog=true \ system service \ --time 15 \ |