librpc:ndr: Don’t duplicate strings needlessly
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 15 Nov 2023 21:15:36 +0000 (10:15 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Nov 2023 05:18:36 +0000 (05:18 +0000)
commit204a46b712cb025d2462b7e4319c04d451e2d550
treeb65bf4ab083d09232dadd692dc96d7e04112455a
parente01e6202e606476066231b0b84903c604db07a6e
librpc:ndr: Don’t duplicate strings needlessly

If the source string doesn’t need to be converted, there’s no reason for
it to be talloc‐allocated.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/ndr/ndr_string.c