]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
fixed bug #34581 missing parentheses in udplite sockets code
authorgoldsimon <goldsimon@gmx.de>
Tue, 18 Oct 2011 09:04:08 +0000 (11:04 +0200)
committergoldsimon <goldsimon@gmx.de>
Tue, 18 Oct 2011 09:04:08 +0000 (11:04 +0200)
CHANGELOG
src/api/sockets.c

index 6f0704387570fceded581e76ddf38ab11c972fd2..caa6090fa6d5101357b39bf648912e8b6d609e93 100644 (file)
--- 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
 
index 081709ab60f58849b37e9ec6a653da64ed663d05..d83847fdb687c0c8d915ed547552b6814eef45d5 100644 (file)
@@ -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 {