[PATCH 2/3] ssl: Fix memcmp() IPv6 address size

David Woodhouse dwmw2 at infradead.org
Sun Dec 7 11:10:08 PST 2014


On Sat, 2014-12-06 at 23:01 -0800, Kevin Cernekee wrote:
> clang spotted the misplaced parentheses:
> 
>     ssl.c:120:72: warning: size argument in 'memcmp' call is a
> comparison
>           [-Wmemsize-comparison]
>       ...!memcmp(&a6->sin6_addr, &b6->sin6_addr, sizeof(a6->sin6_addr)
> &&

Oops :)

Applied; thanks.

-- 
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5745 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20141207/5efec12a/attachment.bin>


More information about the openconnect-devel mailing list