diff options
author | paul <paul> | 2003-07-12 21:49:25 +0000 |
---|---|---|
committer | paul <paul> | 2003-07-12 21:49:25 +0000 |
commit | 7f809942dac3683794f3e9924d327b48be0fe852 (patch) | |
tree | 513213c90ab98c8c7d01f84ea11d2529a202ccae /zebra/if_proc.c | |
parent | f706c10c828a0526326af42d95238b2cd3eb06d1 (diff) |
2003-07-12 Matthias Ferdinand <mferd@sanet.de>
* zebra/if_proc.c: zebra does not close the file after reading
/proc/net/dev for retrieving interface names and statistics.
call fclose(fp) before returning from ifstat_update_proc()
or interface_list_proc()
Diffstat (limited to 'zebra/if_proc.c')
-rw-r--r-- | zebra/if_proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/if_proc.c b/zebra/if_proc.c index 117859fd..6c47d430 100644 --- a/zebra/if_proc.c +++ b/zebra/if_proc.c @@ -161,7 +161,7 @@ ifstat_update_proc () ifp = if_get_by_name (name); ifstat_dev_fields (version, stat, ifp); } - + fclose(fp); return 0; } @@ -195,6 +195,7 @@ interface_list_proc () ifp = if_get_by_name (name); if_add_update (ifp); } + fclose(fp); return 0; } |