diff Modules/socketmodule.c @ 72061:4736e172fa61

Issue12810: Remove check for negative unsigned value in socketmodule.c. Patch by Joel Stanley.
author Charles-François Natali <neologix@free.fr>
date Wed, 24 Aug 2011 20:07:54 +0200
parents b4b84e87dc6b
children c53db7dc4b8f
line wrap: on
line diff
--- a/Modules/socketmodule.c	Wed Aug 24 02:15:25 2011 +0200
+++ b/Modules/socketmodule.c	Wed Aug 24 20:07:54 2011 +0200
@@ -1749,7 +1749,7 @@
     static const size_t cmsg_len_end = (offsetof(struct cmsghdr, cmsg_len) +
                                         sizeof(cmsgh->cmsg_len));
 
-    if (cmsgh == NULL || msg->msg_control == NULL || msg->msg_controllen < 0)
+    if (cmsgh == NULL || msg->msg_control == NULL)
         return 0;
     if (space < cmsg_len_end)
         space = cmsg_len_end;