From ad549072aa72ce27fd58246b92888d8299043398 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Tue, 22 Sep 2009 14:10:52 +0200 Subject: [PATCH] s4:pyldb - Fixed the return value in "py_ldb_msg_diff" The case distinction shouldn't be needed also when "diff" is NULL. "PyLdbMessage_FromMessage" works with "NULL" arguments. --- source4/lib/ldb/pyldb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c index 1ba5109f2fd..0fe4da98872 100644 --- a/source4/lib/ldb/pyldb.c +++ b/source4/lib/ldb/pyldb.c @@ -956,8 +956,6 @@ static PyObject *py_ldb_msg_diff(PyLdbObject *self, PyObject *args) } diff = ldb_msg_diff(PyLdb_AsLdbContext(self), PyLdbMessage_AsMessage(py_msg_old), PyLdbMessage_AsMessage(py_msg_new)); - if (diff == NULL) - return NULL; py_ret = PyLdbMessage_FromMessage(diff); -- 2.34.1