summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables.c b/iptables.c
index c570d3af..86f1aa1c 100644
--- a/iptables.c
+++ b/iptables.c
@@ -1537,6 +1537,9 @@ static char *get_modprobe(void)
case -1: goto fail;
case 1024: goto fail; /* Partial read. Wierd */
}
+ if (ret[strlen(ret)-1]=='\n')
+ ret[strlen(ret)-1]=0;
+ close(procfile);
return ret;
}
fail: