Replace the one use of ibuf_prepend() using a similar ibuf_new() + ibuf_cat()
authorclaudio <claudio@openbsd.org>
Tue, 30 May 2023 08:41:15 +0000 (08:41 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 30 May 2023 08:41:15 +0000 (08:41 +0000)
commit37e80bc66a2ccbf8066b83205112fbab676c3698
tree7f29612d3b613438707ec910de6510d3c8e5a2f3
parentb076d4fbebafae606a76f05c94dc5e380cae980b
Replace the one use of ibuf_prepend() using a similar ibuf_new() + ibuf_cat()
method but instead of overwriting ibuf internals replace the buf a level up.
Users of ikev2_msg_send() are not allowed to hold and reuse a pointer to
msg_data (which is another footgun to disarm at some point).
OK tb@
sbin/iked/iked.h
sbin/iked/ikev2_msg.c
sbin/iked/imsg_util.c