diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-05-11 14:31:47 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-05-18 13:38:39 -0400 |
commit | ed99135f7621459ef873991115372ba1afe88a04 (patch) | |
tree | 5344b34150dced9a882f403070b9990678a0416e /security/selinux/include/initial_sid_to_string.h | |
parent | 85c3222dddc6697dc7513623983a2ba748ba710e (diff) | |
download | linux-ed99135f7621459ef873991115372ba1afe88a04.tar.gz linux-ed99135f7621459ef873991115372ba1afe88a04.tar.bz2 linux-ed99135f7621459ef873991115372ba1afe88a04.zip |
selinux: keep context struct members in sync
Commit 53f3517ae087 ("selinux: do not leave dangling pointer behind")
reset the `str` field of the `context` struct in an OOM error branch.
In this struct the fields `str` and `len` are coupled and should be kept
in sync. Set the length to zero according to the string be set to NULL.
Fixes: 53f3517ae087 ("selinux: do not leave dangling pointer behind")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/initial_sid_to_string.h')
0 files changed, 0 insertions, 0 deletions