don't report quit message twice
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 16 Oct 2008 09:02:55 +0000 (10:02 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 16 Oct 2008 09:02:55 +0000 (10:02 +0100)
cstp.c
mainloop.c

diff --git a/cstp.c b/cstp.c
index d1fdd5c..4a190b7 100644 (file)
--- a/cstp.c
+++ b/cstp.c
@@ -610,7 +610,7 @@ int cstp_bye(struct openconnect_info *vpninfo, char *reason)
        SSL_write(vpninfo->https_ssl, bye_pkt, reason_len + 8);
        free(bye_pkt);
 
-       vpninfo->progress(vpninfo, PRG_TRACE,
+       vpninfo->progress(vpninfo, PRG_INFO,
                          "Send BYE packet: %s\n", reason);
 
        return 0;
index 07e9e2a..be6562b 100644 (file)
@@ -128,7 +128,6 @@ int vpn_mainloop(struct openconnect_info *vpninfo)
        }
 
        cstp_bye(vpninfo, vpninfo->quit_reason);
-       vpninfo->progress(vpninfo, PRG_INFO, "Sent quit message: %s\n", vpninfo->quit_reason);
 
        if (vpninfo->vpnc_script) {
                if (vpninfo->script_tun) {