py-librpc: Strictly check the type of the incoming sid pointer
authorAndrew Bartlett <abartlet@samba.org>
Wed, 9 Aug 2017 01:57:13 +0000 (13:57 +1200)
committerGarming Sam <garming@samba.org>
Tue, 15 Aug 2017 10:00:58 +0000 (12:00 +0200)
commit0dbcd6a4eafb75e1d888e71ee0fa74f36cc6af62
tree0cbc90a023b565d50ceb9856d4d147f02efe3b81
parent5bb341fb9ceb943b4a72108edee9046b60f070b0
py-librpc: Strictly check the type of the incoming sid pointer

This avoids casting another type of object to a void* and then to a SID

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Tue Aug 15 12:00:58 CEST 2017 on sn-devel-144
source4/librpc/ndr/py_security.c