From: Arne Schwabe Date: Fri, 21 Mar 2014 13:18:40 +0000 (+0100) Subject: Don't show the connection profile store in options->ce if there is a connection_list... X-Git-Tag: v2.4_alpha1~463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98e24cc7e8ce3dafada43e46aef32a3d6a7a4f27;p=thirdparty%2Fopenvpn.git 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. Acked-by: Gert Doering Message-Id: <1395407925-25518-8-git-send-email-arne@rfc2549.org> URL: http://article.gmane.org/gmane.network.openvpn.devel/8377 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index cb2cf9524..c5746c54d 100644 --- a/src/openvpn/options.c +++ b/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"); }