mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Don't accept null bytes in the key.
This commit is contained in:
parent
a861d552c3
commit
804cdca7ea
1 changed files with 1 additions and 2 deletions
|
@ -597,10 +597,9 @@ rotor_rotor(PyObject *self, PyObject *args)
|
|||
{
|
||||
Rotorobj *r;
|
||||
char *string;
|
||||
int len;
|
||||
int num_rotors = 6;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "s#|i:newrotor", &string, &len, &num_rotors))
|
||||
if (!PyArg_ParseTuple(args, "s|i:newrotor", &string, &num_rotors))
|
||||
return NULL;
|
||||
|
||||
r = rotorobj_new(num_rotors, string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue