dsdb: Correctly call ldb_module_done in dsdb_notification
[nivanova/samba-autobuild/.git] / source4 / dsdb / samdb / ldb_modules / dsdb_notification.c
index 19ae9dbdf53fbb631abd6dd1a4bb192825defc22..ef92eac79d5a1c0d0e4870ba693dc70b408726d2 100644 (file)
@@ -179,7 +179,7 @@ static int dsdb_notification_filter_search(struct ldb_module *module,
                 * It's the first time, let the caller comeback later
                 * as we won't find any new objects.
                 */
                 * It's the first time, let the caller comeback later
                 * as we won't find any new objects.
                 */
-               return ldb_request_done(req, LDB_SUCCESS);
+               return ldb_module_done(req, NULL, NULL, LDB_SUCCESS);
        }
 
        down_tree = talloc_zero(req, struct ldb_parse_tree);
        }
 
        down_tree = talloc_zero(req, struct ldb_parse_tree);