Re: ftp(1) double free

2020-07-04 Thread Theo Buehler
On Sun, Jun 21, 2020 at 02:23:54AM +0200, Jeremie Courreges-Anglas wrote: > > Small bug, but still... > > naddy@ reported a double free when interrupting (^C) ftp(1) at the end > or url_get(). If that happens, the SIGINT handler longjmps and the > cleanup path is taken a second time. To avoid

ftp(1) double free

2020-06-20 Thread Jeremie Courreges-Anglas
Small bug, but still... naddy@ reported a double free when interrupting (^C) ftp(1) at the end or url_get(). If that happens, the SIGINT handler longjmps and the cleanup path is taken a second time. To avoid this, restore the previous SIGINT handler in each possible error path. I chose to