From e625a14490d913aeb415a3acecb02af9e57ea233 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 25 Apr 2012 17:08:58 +0200 Subject: PYHBAC: Return NULL on failure The error handler would simply fall through instead of returning NULL. --- src/python/pyhbac.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/python/pyhbac.c b/src/python/pyhbac.c index 05938db99..e9dce9b01 100644 --- a/src/python/pyhbac.c +++ b/src/python/pyhbac.c @@ -1684,6 +1684,7 @@ HbacRequest_repr(HbacRequest *self) Py_DECREF(targethost_repr); Py_DECREF(srchost_repr); Py_DECREF(format); + return NULL; } o = PyUnicode_Format(format, args); -- cgit