py_security: Fix comparison between two dom_sid objects
authorAmitay Isaacs <amitay@gmail.com>
Thu, 18 Aug 2011 05:11:20 +0000 (15:11 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 19 Aug 2011 06:35:03 +0000 (16:35 +1000)
commitc71e781e7d66022cd6181e910f5fb8b7d750cbc1
treee6e37b32333eabb446a9b0ff02fe4e523793abe3
parent0fef5a3a268219adea8f9a4614abe1f90f1d845e
py_security: Fix comparison between two dom_sid objects

dom_sid_compare() function can return values other than -1, 0, 1.
Python requires compare function to return value from [-1, 0, 1].

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/librpc/ndr/py_security.c