summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 845cac1)
raw | patch | inline | side by side (parent: 845cac1)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 25 Sep 2009 07:28:11 +0000 (09:28 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 1 Dec 2009 10:35:42 +0000 (11:35 +0100) |
src/openvpn.c | patch | blob | history |
diff --git a/src/openvpn.c b/src/openvpn.c
index cc7090bf45a3e4ebb27f941f127c7e15bf39215f..18f03875d0b6b79ef98ada5c702c7cdb4c9d431e 100644 (file)
--- a/src/openvpn.c
+++ b/src/openvpn.c
fclose (fh);
if (status_version == 0)
- {
+ {
WARNING ("openvpn plugin: unable to detect status version, \
discarding status file \"%s\".", value);
return (1);
sstrerror (errno, errbuf, sizeof (errbuf)));
return (1);
}
-
+
/* it determines the file name as string starting at location filename + 1 */
filename = strrchr (status_file, (int) '/');
if (filename == NULL)
}
}
- /* create a new vpn element since file, version and name are ok */
+ /* create a new vpn element since file, version and name are ok */
temp = (vpn_status_t *) malloc (sizeof (vpn_status_t));
temp->file = status_file;
temp->version = status_version;
static int openvpn_shutdown (void)
{
int i;
-
+
for (i = 0; i < vpn_num; i++)
{
sfree (vpn_list[i]->file);