1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/pidl/lib/Parse
Douglas Bagnall fe9b12b274 pidl/ndr/python: avoid memory errors in getsetters
This:

   $ python3 -c'from samba.dcerpc import lsa; x = lsa.EnumAccounts(); x.in_handle'

should not raise a MemoryError, which is very unfriendly given that
'x.in_handle' is just named, not called, as far as the user is
concerned. Returning None is the proper thing.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>

Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Tue Aug  6 18:17:11 UTC 2019 on sn-devel-184
2019-08-06 18:17:11 +00:00
..
Pidl pidl/ndr/python: avoid memory errors in getsetters 2019-08-06 18:17:11 +00:00
Yapp Fix typo 2016-12-01 05:54:21 +01:00
Pidl.pm