[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data
David Watson
report at bugs.python.org
Thu Dec 5 18:22:46 CET 2013
David Watson added the comment:
Looking again at cmsg_min_space(), I see that it already returns
false when msg_controllen is less than cmsg_len_end, so you could
do a (signed) comparison against that, rather than 0. Patch
attached.
----------
Added file: http://bugs.python.org/file32992/socket-compare-cmsg_len_end.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12837>
_______________________________________
More information about the Python-bugs-list
mailing list