This simple patch fix a segfault that happens when pppd try to store a key into a corrupted tdb file. Marco Pracucci (Waymedia) http://www.pracucci.com http://www.waymedia.it --- ppp-2.4.4/pppd/main.c.orig 2008-03-13 10:45:37.000000000 +0100 +++ ppp-2.4.4/pppd/main.c 2008-03-13 11:24:13.000000000 +0100 @@ -2073,7 +2073,7 @@ dbuf.dptr = vbuf; dbuf.dsize = vlen; if (tdb_store(pppdb, key, dbuf, TDB_REPLACE)) - error("tdb_store failed: %s", tdb_error(pppdb)); + error("tdb_store failed: %s", tdb_errorstr(pppdb)); if (vbuf) free(vbuf);