commit | 44ebf843d7b4e434bc490a9d8716af2b83924758 | [log] [tgz] |
---|---|---|
author | paul <paul> | Tue Oct 07 05:58:48 2003 +0000 |
committer | paul <paul> | Tue Oct 07 05:58:48 2003 +0000 |
tree | 8e3a17e6a05cd976412938b84a5818680bf46b93 | |
parent | 143a385f0cb858126e79bb7c637c2aede234c4ab [diff] [blame] |
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]
diff --git a/zebra/ipforward_proc.c b/zebra/ipforward_proc.c index a31ec84..befa236 100644 --- a/zebra/ipforward_proc.c +++ b/zebra/ipforward_proc.c
@@ -60,6 +60,8 @@ pnt = fgets (buf, 6, fp); sscanf (buf, "Ip: %d", &ipforwarding); + fclose(fp); + if (ipforwarding == 1) return 1;