summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/schema_init.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-02 14:14:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:35:57 -0500
commitd70852659b4dbef9979be81f5d42e5587fc94c75 (patch)
treea82fe150a154c5aa09ade33a9ba2e0a02954dfaf /source4/dsdb/schema/schema_init.c
parent2754a73d221d13095a4228fede25ffc64134beb5 (diff)
downloadsamba-d70852659b4dbef9979be81f5d42e5587fc94c75.tar.gz
samba-d70852659b4dbef9979be81f5d42e5587fc94c75.tar.bz2
samba-d70852659b4dbef9979be81f5d42e5587fc94c75.zip
r20476: get rid of extra case for uint32 values
metze (This used to be commit 13ccd405b5dbb595e5ab67879260462e5a767a8b)
Diffstat (limited to 'source4/dsdb/schema/schema_init.c')
-rw-r--r--source4/dsdb/schema/schema_init.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index 23b5fd9dcc..41998a16db 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -472,9 +472,10 @@ static struct drsuapi_DsReplicaAttribute *dsdb_find_object_attr_name(struct dsdb
#define GET_UINT32_DS(s, r, attr, p, elem) do { \
struct drsuapi_DsReplicaAttribute *_a; \
_a = dsdb_find_object_attr_name(s, r, attr, NULL); \
- if (_a && _a->value_ctr.uint32.num_values >= 1 \
- && _a->value_ctr.uint32.values[0].value) { \
- (p)->elem = *_a->value_ctr.uint32.values[0].value;\
+ if (_a && _a->value_ctr.data_blob.num_values >= 1 \
+ && _a->value_ctr.data_blob.values[0].data \
+ && _a->value_ctr.data_blob.values[0].data->length == 4) { \
+ (p)->elem = IVAL(_a->value_ctr.data_blob.values[0].data->data,0);\
} else { \
(p)->elem = 0; \
} \