mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 01:35:20 +08:00

setkey uses pfkey_open to open a socket. But setkey doesn't close the socket. The libipsec functions are used only by user space applications (setkey and racoon). Adding the wrapper for socket makes sure that the opened socket is registered and closes if the application exits. Fixes #4405