[Zope3-checkins] SVN: Zope3/trunk/src/zope/security/_zope_security_checker.c Added a missing error check. Eek.

Jim Fulton jim at zope.com
Thu Jul 1 15:02:08 EDT 2004


Log message for revision 26022:
Added a missing error check. Eek.



-=-
Modified: Zope3/trunk/src/zope/security/_zope_security_checker.c
===================================================================
--- Zope3/trunk/src/zope/security/_zope_security_checker.c	2004-07-01 19:01:31 UTC (rev 26021)
+++ Zope3/trunk/src/zope/security/_zope_security_checker.c	2004-07-01 19:02:08 UTC (rev 26022)
@@ -92,6 +92,8 @@
                                      permission, object, interaction, NULL);
       Py_DECREF(policy);
       Py_DECREF(interaction);
+      if (r == NULL)
+        return -1;
       i = PyObject_IsTrue(r);
       Py_DECREF(r);
       if (i < 0)



More information about the Zope3-Checkins mailing list