From 2bd93d1a1bf4074d182798ee30c7e743f6d6ac3d Mon Sep 17 00:00:00 2001 From: "massar@UNIX-AG.UNI-KL.DE" Date: Sat, 13 Nov 2004 00:48:00 +0000 Subject: [PATCH] fixed --print-config git-svn-id: https://svn.unix-ag.uni-kl.de/vpnc/trunk@33 315857ad-0bdb-0310-b42e-dec37551a5f0 --- VERSION | 2 +- config.c | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index be58634..9e11b32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3 +0.3.1 diff --git a/config.c b/config.c index 1e0fd16..938f08c 100644 --- a/config.c +++ b/config.c @@ -482,17 +482,18 @@ void do_config(int argc, char **argv) read_config_file("/etc/vpnc/default.conf", config, 1); read_config_file("/etc/vpnc.conf", config, 1); - if (!print_config) + if (!print_config) { for (i = 0; config_names[i].name != NULL; i++) if (!config[config_names[i].nm] && i != CONFIG_NONE && config_names[i].get_def != NULL) config[config_names[i].nm] = config_names[i].get_def(); - opt_debug = (config[CONFIG_DEBUG]) ? atoi(config[CONFIG_DEBUG]) : 0; - opt_nd = (config[CONFIG_ND]) ? 1 : 0; - opt_1des = (config[CONFIG_ENABLE_1DES]) ? 1 : 0; - opt_udpencap=(config[CONFIG_UDP_ENCAP]) ? 1 : 0; - opt_udpencapport=atoi(config[CONFIG_UDP_ENCAP_PORT]); + opt_debug = (config[CONFIG_DEBUG]) ? atoi(config[CONFIG_DEBUG]) : 0; + opt_nd = (config[CONFIG_ND]) ? 1 : 0; + opt_1des = (config[CONFIG_ENABLE_1DES]) ? 1 : 0; + opt_udpencap=(config[CONFIG_UDP_ENCAP]) ? 1 : 0; + opt_udpencapport=atoi(config[CONFIG_UDP_ENCAP_PORT]); + } if (opt_debug >= 99) { printf("WARNING! active debug level is >= 99, output includes username and password (hex encoded)\n"); -- 2.11.4.GIT