diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-02-06 22:58:05 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-02-06 22:58:05 (GMT) |
commit | 8820a535c19f947b6eaea8365e084bea64c53797 (patch) | |
tree | df7e6710e193a80ea4459788e668665f029d95c5 | |
parent | 22aa6447b47e1f0518cd3cdf8e3961fc8583f70d (diff) | |
download | cpython-8820a535c19f947b6eaea8365e084bea64c53797.zip cpython-8820a535c19f947b6eaea8365e084bea64c53797.tar.gz cpython-8820a535c19f947b6eaea8365e084bea64c53797.tar.bz2 |
Patch #103636: Allow writing strings containing null bytes to an SSL socket
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index a9ad1b0..00383c7 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) |