summaryrefslogtreecommitdiff
path: root/openvpn/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-01-03 16:12:56 +0100
committerArne Schwabe <arne@rfc2549.org>2014-01-03 16:12:56 +0100
commit08cce14bd56d431f4d18bcf97ea56667fb5a1138 (patch)
tree9d497d9948173c156ff595dd56d5bf1d8ed87c3f /openvpn/src
parent9c4b5a51e3e8e8d5176d29bf6a70d07958ccc5c1 (diff)
Don’t show the connection profile store in options->ce if there is a connection_list defined.
Entries in options->ce are never used and overwritten by the first usable connection profile on initialisation.
Diffstat (limited to 'openvpn/src')
-rw-r--r--openvpn/src/openvpn/options.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/openvpn/src/openvpn/options.c b/openvpn/src/openvpn/options.c
index 26d5aec7..aa06c0a6 100644
--- a/openvpn/src/openvpn/options.c
+++ b/openvpn/src/openvpn/options.c
@@ -1406,8 +1406,6 @@ show_connection_entry (const struct connection_entry *o)
static void
show_connection_entries (const struct options *o)
{
- msg (D_SHOW_PARMS, "Connection profiles [default]:");
- show_connection_entry (&o->ce);
if (o->connection_list)
{
const struct connection_list *l = o->connection_list;
@@ -1418,6 +1416,11 @@ show_connection_entries (const struct options *o)
show_connection_entry (l->array[i]);
}
}
+ else
+ {
+ msg (D_SHOW_PARMS, "Connection profiles [default]:");
+ show_connection_entry (&o->ce);
+ }
msg (D_SHOW_PARMS, "Connection profiles END");
}