diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-18 18:56:24 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-18 18:56:24 +0000 |
commit | 914623fd2826a14a3625099ede57a6d8cab61056 (patch) | |
tree | a7510b1abd1dc3f5003339279ed59d4ba1f9aa1b /usr.sbin/bgpd/session.c | |
parent | 7d57d5b7eebb952811aaaef97195a1a8c300e8bd (diff) |
reset nconf to NULL after free(), from claudio
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 9afb034c48d..105ed4e44a1 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.3 2003/12/17 19:26:26 henning Exp $ */ +/* $OpenBSD: session.c,v 1.4 2003/12/18 18:56:23 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -1276,6 +1276,7 @@ session_dispatch_imsg(int fd, int idx) if (p->conf.reconf_action == RECONF_NONE) p->conf.reconf_action = RECONF_DELETE; free(nconf); + nconf = NULL; pending_reconf = 0; logit(LOG_INFO, "SE reconfigured"); break; |