From c44358c85c374138c42291ed25fc5f49ce239718 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 21 Aug 2017 11:08:46 +0200 Subject: [PATCH] Assignment clobbers value in if --- src/starttls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/starttls.c b/src/starttls.c index 62373db..8821960 100644 --- a/src/starttls.c +++ b/src/starttls.c @@ -5555,7 +5555,7 @@ gtls_error certificate_onthefly (struct command *cmd) { // This is as expected, now .size will have been set gtls_errno = GNUTLS_E_SUCCESS; } else { - if (gtls_errno = GNUTLS_E_SUCCESS) { + if (gtls_errno == GNUTLS_E_SUCCESS) { // Something must be wrong if we receive OK gtls_errno = GNUTLS_E_INVALID_REQUEST; } -- 1.7.10.4