From: goldsimon Date: Tue, 18 Oct 2011 09:04:08 +0000 (+0200) Subject: fixed bug #34581 missing parentheses in udplite sockets code X-Git-Url: http://rtime.felk.cvut.cz/gitweb/pes-rpp/rpp-lwip.git/commitdiff_plain/2f58ef781c0ceef00bbcb136baf56b428122a595 fixed bug #34581 missing parentheses in udplite sockets code --- diff --git a/CHANGELOG b/CHANGELOG index 6f070438..caa6090f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -69,6 +69,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 081709ab..d83847fd 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -2310,7 +2310,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 { @@ -2320,7 +2320,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 {