Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8820a53

Browse files
committed
Patch #103636: Allow writing strings containing null bytes to an SSL socket
1 parent 22aa644 commit 8820a53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,7 @@ static PyObject *SSL_SSLwrite(SSLObject *self, PyObject *args)
22182218
char *data;
22192219
size_t len = 0;
22202220

2221-
if (!PyArg_ParseTuple(args, "s|i:write", &data, &len))
2221+
if (!PyArg_ParseTuple(args, "s#|i:write", &data, &len))
22222222
return NULL;
22232223

22242224
if (!len)

0 commit comments

Comments
 (0)