Unpack kill argument into an unsigned long correctly.

SF bug #2902635
This commit is contained in:
kylev
2009-12-08 00:17:13 +00:00
parent 29b884d0cc
commit 1a728edd49

View File

@ -1715,7 +1715,7 @@ _mysql_ConnectionObject_kill(
{ {
unsigned long pid; unsigned long pid;
int r; int r;
if (!PyArg_ParseTuple(args, "i:kill", &pid)) return NULL; if (!PyArg_ParseTuple(args, "k:kill", &pid)) return NULL;
check_connection(self); check_connection(self);
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
r = mysql_kill(&(self->connection), pid); r = mysql_kill(&(self->connection), pid);