From: Adriaan de Groot Date: Mon, 21 Aug 2017 09:08:46 +0000 (+0200) Subject: Assignment clobbers value in if X-Git-Url: http://git.arpa2.org/?p=tlspool;a=commitdiff_plain;h=c44358c85c374138c42291ed25fc5f49ce239718 Assignment clobbers value in if --- 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; }