]> granicus.if.org Git - python/commit
Fix two bugs in socket_getaddr():
authorGuido van Rossum <guido@python.org>
Thu, 9 Aug 2007 21:06:37 +0000 (21:06 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 9 Aug 2007 21:06:37 +0000 (21:06 +0000)
commit9ce8e3809906a0e7a01b548883b85d0e323d2f6d
tree2c718b5849506f31cd861f0f2900ad257c79ba5e
parent6ca130d0dba71dd494ae284a76e45e7050132468
Fix two bugs in socket_getaddr():
(a) 'single' shouldn't be DECREF'ed in the cleanup code;
(b) the fallback case in makesockaddr() should use y# instead of s#
    in the format, since the data is bytes, not UTF-8 text.
Modules/socketmodule.c