Oops! Missing options argument pointer for addrcpt.

This commit is contained in:
Stuart Gathman
2009-02-06 04:28:08 +00:00
parent b51c08ba3a
commit 780ac63ebe
2 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -142,8 +142,10 @@ def connectcallback(ctx,hostname,family,hostaddr):
def closecallback(ctx):
m = ctx.getpriv()
if not m: return CONTINUE
rc = m.close()
m._setctx(None) # release milterContext
try:
rc = m.close()
finally:
m._setctx(None) # release milterContext
return rc
def dictfromlist(args):
+4 -1
View File
@@ -35,6 +35,9 @@ $ python setup.py help
libraries=["milter","smutil","resolv"]
* $Log$
* Revision 1.16 2008/12/16 04:21:05 customdesigned
* Fedora release
*
* Revision 1.15 2008/12/13 20:29:56 customdesigned
* Split off milter applications.
*
@@ -1097,7 +1100,7 @@ milter_addrcpt(PyObject *self, PyObject *args) {
PyThreadState *t;
int rc;
if (!PyArg_ParseTuple(args, "s|z:addrcpt", &rcpt)) return NULL;
if (!PyArg_ParseTuple(args, "s|z:addrcpt", &rcpt, &params)) return NULL;
ctx = _find_context(self);
if (ctx == NULL) return NULL;
t = PyEval_SaveThread();