]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ipsecctrl: fix compile error.
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 25 Jun 2010 05:36:39 +0000 (07:36 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 25 Jun 2010 05:36:39 +0000 (07:36 +0200)
src/misc-progs/ipsecctrl.c

index 1dd05eaa7316d3e02e4edf6a7619c88c7bf06687..2e8ca53bfe40e918a585af80200ee231a9f73f08 100644 (file)
@@ -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");