diff options
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 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; |