diff options
author | Volker Lendecke <vl@samba.org> | 2014-06-05 10:04:43 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-06-10 19:19:13 +0200 |
commit | 7c2b5e77b00bdf776619458920fe74981427ee6a (patch) | |
tree | 9cece85a0e080813cc18d28d624753496803f47d /source4/rpc_server | |
parent | e22a0675c222077bee25c4ef1da5d00996d2c199 (diff) | |
download | samba-7c2b5e77b00bdf776619458920fe74981427ee6a.tar.gz |
Use GUID_equal in a few places
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/drsuapi/updaterefs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/updaterefs.c b/source4/rpc_server/drsuapi/updaterefs.c index ae87117d656..6fdbf2e04bf 100644 --- a/source4/rpc_server/drsuapi/updaterefs.c +++ b/source4/rpc_server/drsuapi/updaterefs.c @@ -50,8 +50,8 @@ static WERROR uref_add_dest(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx, } for (i=0; i<reps.count; i++) { - if (GUID_compare(&dest->source_dsa_obj_guid, - &reps.r[i].ctr.ctr1.source_dsa_obj_guid) == 0) { + if (GUID_equal(&dest->source_dsa_obj_guid, + &reps.r[i].ctr.ctr1.source_dsa_obj_guid)) { if (options & DRSUAPI_DRS_GETCHG_CHECK) { return WERR_OK; } else { @@ -97,7 +97,8 @@ static WERROR uref_del_dest(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx, } for (i=0; i<reps.count; i++) { - if (GUID_compare(dest_guid, &reps.r[i].ctr.ctr1.source_dsa_obj_guid) == 0) { + if (GUID_equal(dest_guid, + &reps.r[i].ctr.ctr1.source_dsa_obj_guid)) { if (i+1 < reps.count) { memmove(&reps.r[i], &reps.r[i+1], sizeof(reps.r[i])*(reps.count-(i+1))); } |