]> git.ozlabs.org Git - ppp.git/commit
pppd: Fix segfault in update_db_entry()
authorMartin.Lottermoser@t-online.de <Martin.Lottermoser@t-online.de>
Sun, 9 Jun 2013 12:04:25 +0000 (22:04 +1000)
committerPaul Mackerras <paulus@samba.org>
Sun, 9 Jun 2013 12:04:25 +0000 (22:04 +1000)
commit37476164f15a45015310b9d4b197c2d7db1f7f8f
treed529a25dbc50d30ea481d8de29f973a5fa593107
parent52cd43a84bea524033b918b603698104f221bbb7
pppd: Fix segfault in update_db_entry()

The function update_db_entry() may only be called if pppdb is not NULL;
unfortunately in one situation it is.  Other calls to update_db_entry()
are protected against this, see, e.g., the end of script_setenv().

This is from the Debian pppd patches, and fixes Debian bug 308136
(SEGV in pppd).

Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/main.c