Discussion:
Question about Calling packet_close from cleanup_exitfunction
(too old to reply)
Mahoda Ratnayaka
2016-07-27 22:22:19 UTC
Permalink
Hi,

Just out of interest, is it okay to call packet_close from cleanup_exit
function in sshd.c. For a project that I'm working on I need to clear the
sensitive information held on the server side before exiting.

Thanks,
Mahoda
Damien Miller
2016-07-27 23:08:32 UTC
Permalink
Post by Mahoda Ratnayaka
Hi,
Just out of interest, is it okay to call packet_close from cleanup_exit
function in sshd.c. For a project that I'm working on I need to clear the
sensitive information held on the server side before exiting.
It looks like it will be safe if the packet code has been properly
initialised AND whatever you are doing doesn't involve threads AND
you're not calling it from anything like a signal handler.

-d

Loading...