mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s4:rpc_server: compare_SamEntry() uses NUMERIC_CMP()
SamEntry.idx is uint32_t. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
dd4a0c2768
commit
ed3ab87bdb
@ -1166,7 +1166,7 @@ static NTSTATUS dcesrv_samr_CreateDomainGroup(struct dcesrv_call_state *dce_call
|
||||
*/
|
||||
static int compare_SamEntry(struct samr_SamEntry *e1, struct samr_SamEntry *e2)
|
||||
{
|
||||
return e1->idx - e2->idx;
|
||||
return NUMERIC_CMP(e1->idx, e2->idx);
|
||||
}
|
||||
|
||||
static int compare_msgRid(struct ldb_message **m1, struct ldb_message **m2) {
|
||||
|
Loading…
Reference in New Issue
Block a user