s4: fix various warnings (not "const" related ones)
[sfrench/samba-autobuild/.git] / source4 / libnet / libnet_samsync.c
index 4d512d60344be0f6c67184e87c4b43d2401ee53d..bdfb46dfd9869c39debe921144f679daa78892af 100644 (file)
@@ -26,7 +26,7 @@
 #include "../libcli/samsync/samsync.h"
 #include "auth/gensec/gensec.h"
 #include "auth/credentials/credentials.h"
-#include "auth/gensec/schannel_proto.h"
+#include "libcli/auth/schannel.h"
 #include "librpc/gen_ndr/ndr_netlogon.h"
 #include "librpc/gen_ndr/ndr_netlogon_c.h"
 #include "param/param.h"
@@ -77,7 +77,7 @@ NTSTATUS libnet_SamSync_netlogon(struct libnet_context *ctx, TALLOC_CTX *mem_ctx
                return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
        }
 
-       c = talloc(samsync_ctx, struct libnet_RpcConnect);
+       c = talloc_zero(samsync_ctx, struct libnet_RpcConnect);
        if (!c) {
                r->out.error_string = NULL;
                talloc_free(samsync_ctx);