]> granicus.if.org Git - python/commitdiff
Patch #103636: Allow writing strings containing null bytes to an SSL socket
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 6 Feb 2001 22:58:05 +0000 (22:58 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 6 Feb 2001 22:58:05 +0000 (22:58 +0000)
Modules/socketmodule.c

index a9ad1b0a08ccb85c7b6304d4bbfbbf9a6113f3a5..00383c7ccfeb6e1d4504c6a73b4b0d53cad791c6 100644 (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)