]> git.ipfire.org Git - thirdparty/shadow.git/commit
def_load: avoid NULL deref
authorSerge Hallyn <serge@hallyn.com>
Fri, 19 May 2023 19:49:04 +0000 (14:49 -0500)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 22 May 2023 08:23:12 +0000 (10:23 +0200)
commit419cf1f1c4721829c4d68c9e5fee112a5da5890f
treed7311b405ad9625b4f0956b7cf208e62f318d271
parent9e854f525d2965e45b0bb2bcfa6761a990d0c751
def_load: avoid NULL deref

If econf_getStringValue() fails, it will return an error and
set value to NULL.  Look for the error and avoid dereferencing
value in that case.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
lib/getdef.c