On Sun, 25 May 2025 23:53:50 +0800 Wentao Liang wrote:
The function set_sadb_address() calls the function pfkey_sockaddr_fill(), but does not check its return value. A proper implementation can be found in set_sadb_kmaddress().
Add an error check for set_sadb_address(), return error code if the function fails.
Please look at the callers, and you'll find out that the family has already been validated.