clean up printing of server disconnect message
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 28 Apr 2009 15:18:47 +0000 (16:18 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 28 Apr 2009 15:18:47 +0000 (16:18 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
cstp.c

diff --git a/cstp.c b/cstp.c
index c4ccc99..05d237f 100644 (file)
--- a/cstp.c
+++ b/cstp.c
@@ -458,7 +458,7 @@ int cstp_mainloop(struct openconnect_info *vpninfo, int *timeout)
                        }
                        buf[payload_len + 8] = 0;
                        vpninfo->progress(vpninfo, PRG_ERR,
-                                         "Received server disconnect: '%s'\n", buf + 8);
+                                         "Received server disconnect: %02x '%s'\n", buf[8], buf + 9);
                        vpninfo->quit_reason = "Server request";
                        return 1;
                }