diff options
author | Charles-François Natali <neologix@free.fr> | 2011-08-24 18:07:54 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-08-24 18:07:54 (GMT) |
commit | b09f25e9a3ed33be8bff5e92d14e0fc7f638dc07 (patch) | |
tree | c6cc36b4c8261bb339b884fdfca02c4a1e64a1ea /Modules | |
parent | e049f470cd98a2304c7552939d3606344ab8302a (diff) | |
download | cpython-b09f25e9a3ed33be8bff5e92d14e0fc7f638dc07.zip cpython-b09f25e9a3ed33be8bff5e92d14e0fc7f638dc07.tar.gz cpython-b09f25e9a3ed33be8bff5e92d14e0fc7f638dc07.tar.bz2 |
Issue12810: Remove check for negative unsigned value in socketmodule.c. Patch
by Joel Stanley.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 5878ebb..9372fea 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1749,7 +1749,7 @@ cmsg_min_space(struct msghdr *msg, struct cmsghdr *cmsgh, size_t space) 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; |