From 08cce14bd56d431f4d18bcf97ea56667fb5a1138 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 3 Jan 2014 16:12:56 +0100 Subject: =?UTF-8?q?Don=E2=80=99t=20show=20the=20connection=20profile=20sto?= =?UTF-8?q?re=20in=20options->ce=20if=20there=20is=20a=20connection=5Flist?= =?UTF-8?q?=20defined.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Entries in options->ce are never used and overwritten by the first usable connection profile on initialisation. --- openvpn/src/openvpn/options.c | 7 +++++-- 1 file 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"); } -- cgit v1.2.3