dsdb: Correctly call ldb_module_done in dsdb_notification
authorAndrew Bartlett <abartlet@samba.org>
Wed, 31 May 2017 00:22:28 +0000 (12:22 +1200)
committerGarming Sam <garming@samba.org>
Wed, 14 Jun 2017 23:24:25 +0000 (01:24 +0200)
If we just call ldb_request_done() then we never call the callback.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
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.
                 */
-               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);