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()
This commit is contained in:
paul 2003-07-12 21:49:25 +00:00
parent f706c10c82
commit 7f809942da

View File

@ -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;
}