diff options
author | paul <paul> | 2003-10-07 07:58:48 +0200 |
---|---|---|
committer | paul <paul> | 2003-10-07 07:58:48 +0200 |
commit | 44ebf843d7b4e434bc490a9d8716af2b83924758 (patch) | |
tree | 8e3a17e6a05cd976412938b84a5818680bf46b93 /zebra/ipforward_proc.c | |
parent | 2003-09-29 Gilad Arnold <gilad.arnold@terayon.com> (diff) | |
download | frr-44ebf843d7b4e434bc490a9d8716af2b83924758.tar.xz frr-44ebf843d7b4e434bc490a9d8716af2b83924758.zip |
2003-10-07 Tarhon-Onu Victor <mituc@iasi.rdsnet.ro>
* zebra/ipforward_proc.c: (ipforward) Close the fd for
/proc/net/snmp. See [quagga-dev 284]
Diffstat (limited to 'zebra/ipforward_proc.c')
-rw-r--r-- | zebra/ipforward_proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/ipforward_proc.c b/zebra/ipforward_proc.c index a31ec84b6..befa2369e 100644 --- a/zebra/ipforward_proc.c +++ b/zebra/ipforward_proc.c @@ -60,6 +60,8 @@ ipforward () pnt = fgets (buf, 6, fp); sscanf (buf, "Ip: %d", &ipforwarding); + fclose(fp); + if (ipforwarding == 1) return 1; |