This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/packages/ppp/patches/030-tdb_close_null_dereference.patch

13 lines
351 B
Diff
Raw Normal View History

2013-07-13 17:19:22 +01:00
--- ppp-2.4.5.ori/pppd/main.c 2009-11-16 22:26:07.000000000 +0000
+++ ppp-2.4.5/pppd/main.c 2010-07-10 23:50:45.225155782 +0100
@@ -1571,7 +1571,8 @@
/* Executing in the child */
sys_close();
#ifdef USE_TDB
- tdb_close(pppdb);
+ if (pppdb != NULL)
+ tdb_close(pppdb);
#endif
/* make sure infd, outfd and errfd won't get tromped on below */