ndr: avoid object ACE pull overhead for non-object ACE
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 31 Dec 2023 21:21:33 +0000 (10:21 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Feb 2024 02:48:44 +0000 (02:48 +0000)
commitfce4d51eb492a6fc807c6849cd4bd65ca7714509
tree3930fd9d2df747e76e4a63f8660586e944c5b95a
parent2a60ec98409b161cfeb4b51414ba61feb26c01b9
ndr: avoid object ACE pull overhead for non-object ACE

When an ACE is not an object ACE, which is common, setting the switch
value and attempting the object ACE GUID pull is just going to do
nothing, and we know that ahead of time. By noticing that we can save
a bit of time on a common operation.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15574
librpc/ndr/ndr_sec_helper.c