auth/credentials: Remove use of pytalloc_get_type() of NDR types in pycredentials
commit3d1ec5dc676f59d6f8cbcf9869521bf6c67605e5
authorAndrew Bartlett <abartlet@samba.org>
Wed, 20 Mar 2024 01:42:31 +0000 (20 14:42 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 28 Mar 2024 01:50:41 +0000 (28 01:50 +0000)
tree72ed72d38074783a1ea3cdea9365ef1abbae439e
parent93f4be164714ddd36e52bcc28d8278361ba6bf2f
auth/credentials: Remove use of pytalloc_get_type() of NDR types in pycredentials

This function is based on a flawed premise that the
pointer is a talloc context, but the second element
in an array and any element in a structure is not a
talloc context.

The type has already been checked above.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
auth/credentials/pycredentials.c