Show More
@@ -1084,8 +1084,10 b' static PyObject *index_partialmatch(inde' | |||
|
1084 | 1084 | return NULL; |
|
1085 | 1085 | } |
|
1086 | 1086 | |
|
1087 | if (nodelen > 40) | |
|
1088 | nodelen = 40; | |
|
1087 | if (nodelen > 40) { | |
|
1088 | PyErr_SetString(PyExc_ValueError, "key too long"); | |
|
1089 | return NULL; | |
|
1090 | } | |
|
1089 | 1091 | |
|
1090 | 1092 | for (i = 0; i < nodelen; i++) |
|
1091 | 1093 | hexdigit(node, i); |
General Comments 0
You need to be logged in to leave comments.
Login now