Fix the mess with ldb includes.
[metze/samba/wip.git] / source4 / nbt_server / wins / wins_ldb.c
index 02ea30624309bd3f848d5922d3e1675cd793a37b..7effb9b8420d229687f0d84085d1661d44c2b2c3 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include "includes.h"
+#include "lib/events/events.h"
 #include "nbt_server/nbt_server.h"
 #include "nbt_server/wins/winsdb.h"
 #include "lib/ldb/include/ldb.h"
@@ -98,7 +99,7 @@ static int wins_ldb_init(struct ldb_module *ctx)
                }
        }
 
-       h = talloc(ctx, struct winsdb_handle);
+       h = talloc_zero(ctx, struct winsdb_handle);
        if (!h) goto failed;
        h->ldb          = ctx->ldb;
        h->caller       = WINSDB_HANDLE_CALLER_ADMIN;