Fix the mess with ldb includes.
[kai/samba-autobuild/.git] / source4 / lib / ldb / ldb_map / ldb_map_private.h
index 0543ba71b9b1dff2691c936c3f093fad66d3fbfb..0c46443253738870a605d2309e84259e45050010 100644 (file)
@@ -1,6 +1,6 @@
 
 /* A handy macro to report Out of Memory conditions */
-#define map_oom(module) ldb_set_errstring(module->ldb, talloc_asprintf(module, "Out of Memory"));
+#define map_oom(module) ldb_set_errstring(ldb_module_get_ctx(module), talloc_asprintf(module, "Out of Memory"));
 
 /* The type of search callback functions */
 typedef int (*ldb_map_callback_t)(struct ldb_request *, struct ldb_reply *);