mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
KCC: use ndr_pack for connection GUID comparisons
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
eb498a1575
commit
a4cdd907b5
@ -420,9 +420,10 @@ class KCC(object):
|
||||
if s2_dnstr != s_dnstr:
|
||||
continue
|
||||
|
||||
#XXX GUID comparison
|
||||
lesser = (cn_conn.whenCreated < cn2_conn.whenCreated or
|
||||
(cn_conn.whenCreated == cn2_conn.whenCreated and
|
||||
cmp(cn_conn.guid, cn2_conn.guid) < 0))
|
||||
ndr_pack(cn_conn.guid) < ndr_pack(cn2_conn.guid)))
|
||||
|
||||
if lesser:
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user