ndr: avoid unnecessary searches of token list
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 26 Feb 2016 04:01:37 +0000 (17:01 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 22 Mar 2016 07:00:31 +0000 (08:00 +0100)
commit9af628a488d2b628e6c33917be7030602eeb5fde
tree6d9a957473a87a1814416eeb745e175ea25435fe
parentbac35a178f6ec242a8493df8b3b53e914a02a5fd
ndr: avoid unnecessary searches of token list

When pulling complex structures like nt-acls, a long list of tokens
may be produced. This change means the token list won't be walked in the
buffers case if the switch value is not needed.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm