summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-12-29 13:41:42 +0100
committerJeremy Allison <jra@samba.org>2021-06-04 16:47:34 +0000
commitc2092cfc4489ad245ffd40bb4865e64ee37fadc2 (patch)
tree4a7567819b12eee5adb41736d5bf5f817c98e238 /source3/libnet
parentb9f903fbd564d98df32570e083c855464e8042a9 (diff)
downloadsamba-c2092cfc4489ad245ffd40bb4865e64ee37fadc2.tar.gz
libnet: Initialize pointers
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_dssync_passdb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/libnet/libnet_dssync_passdb.c b/source3/libnet/libnet_dssync_passdb.c
index 522e64f8dd4..7d5ef64e8f4 100644
--- a/source3/libnet/libnet_dssync_passdb.c
+++ b/source3/libnet/libnet_dssync_passdb.c
@@ -1780,8 +1780,7 @@ static NTSTATUS parse_object(struct dssync_passdb *pctx,
struct drsuapi_DsReplicaObjectListItemEx *cur)
{
NTSTATUS status = NT_STATUS_OK;
- DATA_BLOB *blob;
- struct drsuapi_DsReplicaAttribute *attr;
+ DATA_BLOB *blob = NULL;
uint32_t i = 0;
size_t a = 0;
@@ -1791,8 +1790,8 @@ static NTSTATUS parse_object(struct dssync_passdb *pctx,
DEBUG(3, ("parsing object '%s'\n", cur->object.identifier->dn));
for (i=0; i < cur->object.attribute_ctr.num_attributes; i++) {
-
- attr = &cur->object.attribute_ctr.attributes[i];
+ struct drsuapi_DsReplicaAttribute *attr =
+ &cur->object.attribute_ctr.attributes[i];
if (attr->value_ctr.num_values != 1) {
continue;