summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-04-25 17:08:58 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-02 08:10:17 -0400
commite625a14490d913aeb415a3acecb02af9e57ea233 (patch)
treeffb6f3e24f1441d36d343b0bb24c8d2640194ae6
parentc3f4aaa1a26035d05e60238d3e2df7fb4429ae28 (diff)
downloadsssd-e625a14490d913aeb415a3acecb02af9e57ea233.tar.gz
sssd-e625a14490d913aeb415a3acecb02af9e57ea233.tar.bz2
sssd-e625a14490d913aeb415a3acecb02af9e57ea233.zip
PYHBAC: Return NULL on failure
The error handler would simply fall through instead of returning NULL.
-rw-r--r--src/python/pyhbac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python/pyhbac.c b/src/python/pyhbac.c
index 05938db9..e9dce9b0 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);