]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/bio/b_sock.c
Make sure a socklen_t can compare with a sizeof() result
authorRichard Levitte <levitte@openssl.org>
Sun, 14 Feb 2016 10:16:37 +0000 (11:16 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 14 Feb 2016 10:16:37 +0000 (11:16 +0100)
commit59d9bb591c950062ef3721f6b58fddbaae910f2a
treed76c633a1b34a26f98536f422852ffda27b12cec
parentba327ade803fccb34a4bd4f5803efb33e22dd767
Make sure a socklen_t can compare with a sizeof() result

Most of the times, it seems that socklen_t is unsigned.
Unfortunately, this isn't always the case, and it doesn't compare with
a size_t without warning.

A cast resolves the issue.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
crypto/bio/b_sock.c