CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2020/07/18 11:40:38

Modified files:
        sys/net        : pfkeyv2.c pfkeyv2.h 

Log message:
Add size to free(9) calls

pfkeyv2_send() allocates multiple buffers using the same variable `i' to
calculate their sizes, use dedicated size variables for each buffer to reuse
them with free(9).

For this, make pfkeyv2_policy() pass back the size of its freshly allocated
buffer.

Tested, feedback and OK tobhe

Reply via email to