]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/seccomp: avoid possibly writing bogus errno code in debug log 14265/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Dec 2019 14:04:51 +0000 (15:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Dec 2019 14:12:40 +0000 (15:12 +0100)
commitb069c2a3f2b083940d78fd535b6aa83dbc6eea16
tree9ca0085bc1b0d1381df59caf907f14cfff085aa8
parent36f43076b99e2054de96f112f494a82916377d8c
shared/seccomp: avoid possibly writing bogus errno code in debug log

CID 1409488.

This code was added in 903659e7b242c3cc897e32835f1918d380b24e5f. The change
that is done here is a simple fix to avoid use of a
unitialized/wrongly-initialized variable, but the bigger issue is that nothing
looks at the returned result to distinguish between 0 and a positive return
value.
src/shared/seccomp-util.c