diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-07-14 19:17:45 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-07-14 19:17:45 +0000 |
commit | 5ac8b562340e6dc0c38f88ce86f9df50058bd032 (patch) | |
tree | 69f373f83fa36ee9d460437007e3b399b1fbeb8e /xpp/xpp_zap.c | |
parent | 30c7570cfd3a736af725d82fd8988859602183b8 (diff) |
NULLify pointers to /proc files after removing them (so anyone who tries to
access them afterwards causes iimmediate Oops instead of unknown behaviour).
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1225 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xpp_zap.c')
-rw-r--r-- | xpp/xpp_zap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xpp/xpp_zap.c b/xpp/xpp_zap.c index fc61af0..e1d15ed 100644 --- a/xpp/xpp_zap.c +++ b/xpp/xpp_zap.c @@ -1491,6 +1491,7 @@ static void do_cleanup(void) remove_proc_entry(PROC_SYNC, xpp_proc_toplevel); if(xpp_proc_toplevel) { remove_proc_entry(PROC_DIR, NULL); + xpp_proc_toplevel = NULL; } #endif } |