]> git.ipfire.org Git - thirdparty/shadow.git/commit
newgrp: fix segmentation fault 437/head
authorIker Pedrosa <ipedrosa@redhat.com>
Wed, 10 Nov 2021 11:02:04 +0000 (12:02 +0100)
committerIker Pedrosa <ipedrosa@redhat.com>
Wed, 10 Nov 2021 11:02:04 +0000 (12:02 +0100)
commit497e90751bc0d95cc998b0f06305040563903948
tree02469f034a2640958219ed22f0c1365dbabd9c45
parent387da46d73524c9fea48f5a949eb5220d40440e6
newgrp: fix segmentation fault

Fix segmentation fault in newgrp when xgetspnam() returns a NULL value
that is immediately freed.

The error was committed in
https://github.com/shadow-maint/shadow/commit/e65cc6aebcb4132fa413f00a905216a5b35b3d57

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2019553

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
src/newgrp.c