TODO fix py_ldb_msg_richcmp TODO check/fix others?
authorStefan Metzmacher <metze@samba.org>
Mon, 2 Nov 2015 23:33:36 +0000 (00:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 4 Nov 2015 12:12:00 +0000 (13:12 +0100)
lib/ldb/pyldb.c

index 327cb6bc271406ac048bd53e635c71b383030830..fb00e3581c28b1a52d04b69917b4b40f777f3a2d 100644 (file)
@@ -3060,7 +3060,7 @@ static PyObject *py_ldb_msg_richcmp(PyLdbMessageObject *py_msg1,
        unsigned int i;
        int ret;
 
        unsigned int i;
        int ret;
 
-       if (!PyLdbMessage_Check(py_msg1)) {
+       if (!PyLdbMessage_Check(py_msg2)) {
                Py_INCREF(Py_NotImplemented);
                return Py_NotImplemented;
        }
                Py_INCREF(Py_NotImplemented);
                return Py_NotImplemented;
        }