]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
start_cstp_connection: avoid unused assignment
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 12 Nov 2020 14:54:19 +0000 (15:54 +0100)
committerNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Tue, 17 Nov 2020 12:53:13 +0000 (13:53 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
cstp.c

diff --git a/cstp.c b/cstp.c
index b9d8251c51a26c899195c5cecefd9a5ee253b1a3..ca9f0163a1b56fc85cf08368bc9fe40c8014ef89 100644 (file)
--- a/cstp.c
+++ b/cstp.c
@@ -393,7 +393,7 @@ static int start_cstp_connection(struct openconnect_info *vpninfo)
                if (!strncmp(buf, "HTTP/1.1 503 ", 13)) {
                        /* "Service Unavailable. Why? */
                        const char *reason = "<unknown>";
-                       while ((i = vpninfo->ssl_gets(vpninfo, buf, sizeof(buf)))) {
+                       while ((vpninfo->ssl_gets(vpninfo, buf, sizeof(buf)))) {
                                if (!strncmp(buf, "X-Reason: ", 10)) {
                                        reason = buf + 10;
                                        break;