Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/isdn/isdnd initialize a global pointer before re-re...



details:   https://anonhg.NetBSD.org/src/rev/99df6a7754cf
branches:  trunk
changeset: 525732:99df6a7754cf
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Apr 16 17:07:58 2002 +0000

description:
initialize a global pointer before re-reading the config file,
otherwise we'd take free()d memory as configuration data

diffstat:

 usr.sbin/isdn/isdnd/rc_config.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r ed683f1acc27 -r 99df6a7754cf usr.sbin/isdn/isdnd/rc_config.c
--- a/usr.sbin/isdn/isdnd/rc_config.c   Tue Apr 16 13:39:19 2002 +0000
+++ b/usr.sbin/isdn/isdnd/rc_config.c   Tue Apr 16 17:07:58 2002 +0000
@@ -27,7 +27,7 @@
  *     i4b daemon - config file processing
  *     -----------------------------------
  *
- *     $Id: rc_config.c,v 1.12 2002/04/10 23:35:07 martin Exp $ 
+ *     $Id: rc_config.c,v 1.13 2002/04/16 17:07:58 drochner Exp $ 
  *
  * $FreeBSD$
  *
@@ -85,8 +85,9 @@
        if(reread)
        {
                reset_scanner(yyin);
+               current_cfe = NULL;
        }
-       
+
        if (yyin == NULL)
        {
                log(LL_ERR, "cannot fopen file [%s]", filename);



Home | Main Index | Thread Index | Old Index