kdc: add _nocopy setter for use by mssfu
authorLuke Howard <lukeh@padl.com>
Thu, 20 Jan 2022 04:26:50 +0000 (15:26 +1100)
committerLuke Howard <lukeh@padl.com>
Thu, 20 Jan 2022 06:23:24 +0000 (17:23 +1100)
commite32f7a4387a25ad6916ac056bfca7b958f9ef0e9
tree63b00703e0028a828d93a49f8a0233bedd635bf6
parentec24edf7005c340018450a202d27ca75fcf322d4
kdc: add _nocopy setter for use by mssfu

Add an internal-use setter accessor for use by mssfu.c when principal names are
replaced. This also fixes a leak where r->client_princ was not freed before
being replaced with the impersonated client name.
kdc/kdc-plugin.c
kdc/kdc_locl.h
kdc/mssfu.c