s4:kdc: Avoid copying data if not needed
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 16 Mar 2023 20:16:17 +0000 (09:16 +1300)
committerJule Anger <janger@samba.org>
Fri, 22 Sep 2023 20:11:08 +0000 (20:11 +0000)
commitd96cd43df01ff30df6962f481ade1eca895feab5
tree084e0d5f62ff4447576957124b126b9e599c342e
parentf1b7a21a7f6e47377ab4f41a9741a87907438c01
s4:kdc: Avoid copying data if not needed

krb5_pac_add_buffer() makes its own copy of the data we pass in. We
don't need to make yet another copy.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit fa901e7346d36ae64a7ceab5dcf76bc210a67c93)

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15476
source4/kdc/pac-glue.c