Commit 3826925f authored by Sam Rushing's avatar Sam Rushing

getsockopt: value-as-string needs PyBytes_AsString()

parent ba0d71f0
......@@ -234,7 +234,7 @@ cdef public class sock [ object sock_object, type sock_type ]:
return flag
else:
s = PyBytes_FromStringAndSize (NULL, buflen)
r = getsockopt (self.fd, level, optname, <void*>s, &buflen)
r = getsockopt (self.fd, level, optname, <void*>PyBytes_AsString (s), &buflen)
if r == -1:
raise_oserror()
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment