]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Don't show the connection profile store in options->ce if there is a connection_list...
authorArne Schwabe <arne@rfc2549.org>
Fri, 21 Mar 2014 13:18:40 +0000 (14:18 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 23 Mar 2014 19:23:14 +0000 (20:23 +0100)
Entries in options->ce are never used and overwritten by the first usable
connection profile on initialisation.

Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/openvpn/options.c

index cb2cf9524d61f5e3db3af27612487e08ad42ec08..c5746c54d4d3675ab60b0b79c78eaa4cd942b6e8 100644 (file)
@@ -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");
 }