From: Andrew M. Kuchling Date: Tue, 6 Feb 2001 22:58:05 +0000 (+0000) Subject: Patch #103636: Allow writing strings containing null bytes to an SSL socket X-Git-Tag: v2.1b1~497 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8820a535c19f947b6eaea8365e084bea64c53797;p=python Patch #103636: Allow writing strings containing null bytes to an SSL socket --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index a9ad1b0a08..00383c7ccf 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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)