]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Check tdb pointer before closing
authorAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
Thu, 6 Jun 2019 15:36:29 +0000 (17:36 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 19 Oct 2019 04:52:21 +0000 (15:52 +1100)
Check that pointer to the tdb is not NULL before calling tdb_close().
It is possible that the file could not be opened/created due to
permission issues. This change prevents the crash that happens in that
case.

Signed-off-by: Alfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>

No differences found