CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2020/07/18 09:10:03

Modified files:
        sys/net        : pfkeyv2_convert.c 

Log message:
Add size to free(9) calls

import_identities() calls import_identity() which allocates a buffer and
potentially frees it itself;  if not, import_identities() uses it and frees
it afterwards.

Instead of crunching down the buffer size twice, make import_identity()
calculate and pass it back, similar to how pfkeyv2.c:pfkeyv2_get() does it.

Tested and OK tobhe

Reply via email to