Patch #103636: Allow writing strings containing null bytes to an SSL socket

This commit is contained in:
Andrew M. Kuchling 2001-02-06 22:58:05 +00:00
parent 22aa6447b4
commit 8820a535c1

View file

@ -2218,7 +2218,7 @@ static PyObject *SSL_SSLwrite(SSLObject *self, PyObject *args)
char *data;
size_t len = 0;
if (!PyArg_ParseTuple(args, "s|i:write", &data, &len))
if (!PyArg_ParseTuple(args, "s#|i:write", &data, &len))
return NULL;
if (!len)