Fix cast of boolean where cast of LHS intended.

Closes #74.
This commit is contained in:
Juli Mallett 2014-04-21 14:30:09 -07:00 committed by Ben Laurie
parent 15658d0cbf
commit 487dac87e3

View file

@ -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;