Bugfix: Check argument types and encodings in zts_py_send()

This commit is contained in:
Joseph Henry
2021-03-16 23:30:14 -07:00
parent 9b79c2616d
commit 73e26c1a79
10 changed files with 349 additions and 201 deletions

View File

@@ -351,7 +351,7 @@ class socket:
def send(self, data, flags=0):
"""Write data to the socket"""
err = libzt.zts_py_send(self._fd, data, len(data), flags)
err = libzt.zts_py_send(self._fd, data, flags)
if err < 0:
handle_error(err)
return err