projects
/
people
/
pmueller
/
ipfire-2.x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
734b67d
)
ipsecctrl: fix compile error.
author
Arne Fitzenreiter
<arne_f@ipfire.org>
Fri, 25 Jun 2010 05:36:39 +0000
(07:36 +0200)
committer
Arne Fitzenreiter
<arne_f@ipfire.org>
Fri, 25 Jun 2010 05:36:39 +0000
(07:36 +0200)
src/misc-progs/ipsecctrl.c
patch
|
blob
|
blame
|
history
diff --git
a/src/misc-progs/ipsecctrl.c
b/src/misc-progs/ipsecctrl.c
index
1dd05ea
..
2e8ca53
100644
(file)
--- a/
src/misc-progs/ipsecctrl.c
+++ b/
src/misc-progs/ipsecctrl.c
@@
-142,6
+142,8
@@
int decode_line (char *s,
*/
void turn_connection_on (char *name, char *type) {
char command[STRING_SIZE];
+ FILE *file = NULL;
+
if (file = fopen("/var/run/vpn-watch.pid", "r")) {
safe_system("kill -9 $(cat /var/run/vpn-watch.pid)");
safe_system("unlink /var/run/vpn-watch.pid");