diff options
author | Uri Simchoni <uri@samba.org> | 2017-11-19 17:57:29 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-11-22 10:20:21 +0100 |
commit | 80b4b53fbab4aaab0485411f3c611b66d8a3053b (patch) | |
tree | cdd45aec9798c14facaaa4907cd397ff461a145e /source3 | |
parent | 4171191daec0d496d835ba8d281c366319fe4c78 (diff) | |
download | samba-80b4b53fbab4aaab0485411f3c611b66d8a3053b.tar.gz |
s3-rpc-server: fix type of enum in lsa server
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/lsa/srv_lsa_nt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c index 2d0d29e5f35..3cc87ad9081 100644 --- a/source3/rpc_server/lsa/srv_lsa_nt.c +++ b/source3/rpc_server/lsa/srv_lsa_nt.c @@ -4157,7 +4157,7 @@ static NTSTATUS make_ft_info(TALLOC_CTX *mem_ctx, rec->flags = lrec->flags; rec->timestamp = lrec->time; - rec->type = lrec->type; + rec->type = (enum ForestTrustInfoRecordType)lrec->type; switch (lrec->type) { case LSA_FOREST_TRUST_TOP_LEVEL_NAME: @@ -4412,7 +4412,7 @@ static NTSTATUS own_ft_info(struct pdb_domain_info *dom_info, rec->flags = 0; rec->timestamp = 0; - rec->type = LSA_FOREST_TRUST_TOP_LEVEL_NAME; + rec->type = FOREST_TRUST_TOP_LEVEL_NAME; rec->data.name.string = talloc_strdup(fti, dom_info->dns_forest); if (!rec->data.name.string) { @@ -4425,7 +4425,7 @@ static NTSTATUS own_ft_info(struct pdb_domain_info *dom_info, rec->flags = 0; rec->timestamp = 0; - rec->type = LSA_FOREST_TRUST_DOMAIN_INFO; + rec->type = FOREST_TRUST_DOMAIN_INFO; info = &rec->data.info; |