diff options
-rw-r--r-- | source3/libnet/libnet_dssync.c | 6 | ||||
-rw-r--r-- | source3/libnet/libnet_keytab.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/source3/libnet/libnet_dssync.c b/source3/libnet/libnet_dssync.c index 684a2cc63b..bae03effed 100644 --- a/source3/libnet/libnet_dssync.c +++ b/source3/libnet/libnet_dssync.c @@ -504,8 +504,8 @@ static NTSTATUS libnet_dssync_getncchanges(TALLOC_CTX *mem_ctx, } for (y=0, last_query = false; !last_query; y++) { - struct drsuapi_DsReplicaObjectListItemEx *first_object; - struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr; + struct drsuapi_DsReplicaObjectListItemEx *first_object = NULL; + struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr = NULL; if (level == 8) { DEBUG(1,("start[%d] tmp_higest_usn: %llu , highest_usn: %llu\n",y, @@ -634,7 +634,7 @@ static NTSTATUS libnet_dssync_process(TALLOC_CTX *mem_ctx, { NTSTATUS status; - int32_t level; + int32_t level = 0; union drsuapi_DsGetNCChangesRequest req; struct replUpToDateVectorBlob *old_utdv = NULL; struct replUpToDateVectorBlob *pnew_utdv = NULL; diff --git a/source3/libnet/libnet_keytab.c b/source3/libnet/libnet_keytab.c index 836cf6ed23..6447183958 100644 --- a/source3/libnet/libnet_keytab.c +++ b/source3/libnet/libnet_keytab.c @@ -314,6 +314,7 @@ krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx) struct libnet_keytab_entry *entry = &ctx->entries[i]; krb5_data password; + ZERO_STRUCT(password); password.data = (char *)entry->password.data; password.length = entry->password.length; |