summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
authorpaul <paul>2003-10-07 05:58:48 +0000
committerpaul <paul>2003-10-07 05:58:48 +0000
commit44ebf843d7b4e434bc490a9d8716af2b83924758 (patch)
tree8e3a17e6a05cd976412938b84a5818680bf46b93 /zebra
parent143a385f0cb858126e79bb7c637c2aede234c4ab (diff)
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')
-rw-r--r--zebra/ipforward_proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/ipforward_proc.c b/zebra/ipforward_proc.c
index a31ec84b..befa2369 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;