From d8c151c881cb544d765d70196b5cf0cddabd9199 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 12 Nov 2020 15:54:19 +0100 Subject: [PATCH] start_cstp_connection: avoid unused assignment Signed-off-by: Nikos Mavrogiannopoulos --- cstp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cstp.c b/cstp.c index b9d8251c..ca9f0163 100644 --- 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 = ""; - 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; -- 2.50.1