From: Juli Mallett Date: Mon, 21 Apr 2014 21:30:09 +0000 (-0700) Subject: Fix cast of boolean where cast of LHS intended. X-Git-Tag: master-post-reformat~774 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=487dac87e36ff2d80302494c4f0837de6e321081;p=oweals%2Fopenssl.git Fix cast of boolean where cast of LHS intended. Closes #74. --- diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 9308aedc39..0ba37da0a0 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1353,7 +1353,7 @@ unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned cha { size_t col = s->s3->client_opaque_prf_input_len; - if ((long)(limit - ret - 6 - col < 0)) + if ((long)(limit - ret - 6 - col) < 0) return NULL; if (col > 0xFFFD) /* can't happen */ return NULL;