INN commit: branches/2.4/nnrpd (python.c)
INN Commit
Russ_Allbery at isc.org
Fri Sep 26 23:02:08 UTC 2008
Date: Friday, September 26, 2008 @ 16:02:08
Author: iulius
Revision: 8056
Fix a bug since commit 6208 which made Python dynamic hooks not work.
Modified:
branches/2.4/nnrpd/python.c
----------+
python.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Modified: python.c
===================================================================
--- python.c 2008-09-26 22:57:05 UTC (rev 8055)
+++ python.c 2008-09-26 23:02:08 UTC (rev 8056)
@@ -693,7 +693,7 @@
PyObject *result;
/* check to see if this file is in files */
- if (!(hash_lookup(files, file))) {
+ if ((fp = hash_lookup(files, file)) == NULL) {
fp = xmalloc(sizeof(PyFile));
fp->file = xstrdup(file);
@@ -723,9 +723,8 @@
}
fp->loaded[type] = true;
}
- return fp->procs[type][method];
}
- return NULL;
+ return fp->procs[type][method];
}
/*
More information about the inn-committers
mailing list