From 9621ccb7129ce1fba724ade3f5503ee7214069e4 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 18 Oct 2011 11:04:08 +0200 Subject: [PATCH] fixed bug #34581 missing parentheses in udplite sockets code --- CHANGELOG | 3 +++ src/api/sockets.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3886c4f0..69483772 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -49,6 +49,9 @@ HISTORY ++ Bugfixes: + 2011-10-18: Simon Goldschmidt + * sockets.c: fixed bug #34581 missing parentheses in udplite sockets code + 2011-10-18: Simon Goldschmidt * sockets.h: fixed bug #34580 fcntl() is missing in LWIP_COMPAT_SOCKETS diff --git a/src/api/sockets.c b/src/api/sockets.c index 846b8b35..27f0672e 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -2245,7 +2245,7 @@ lwip_setsockopt_internal(void *arg) case IPPROTO_UDPLITE: switch (optname) { case UDPLITE_SEND_CSCOV: - if ((*(int*)optval != 0) && ((*(int*)optval < 8)) || (*(int*)optval > 0xffff)) { + if ((*(int*)optval != 0) && ((*(int*)optval < 8) || (*(int*)optval > 0xffff))) { /* don't allow illegal values! */ sock->conn->pcb.udp->chksum_len_tx = 8; } else { @@ -2255,7 +2255,7 @@ lwip_setsockopt_internal(void *arg) s, (*(int*)optval)) ); break; case UDPLITE_RECV_CSCOV: - if ((*(int*)optval != 0) && ((*(int*)optval < 8)) || (*(int*)optval > 0xffff)) { + if ((*(int*)optval != 0) && ((*(int*)optval < 8) || (*(int*)optval > 0xffff))) { /* don't allow illegal values! */ sock->conn->pcb.udp->chksum_len_rx = 8; } else {