On Wed, Aug 17, 2011 at 04:54:56PM +0200, Lukas Fleischer wrote: > Avoid invoking unlink() with a NULL path if the URL isn't to a file and > we fail to create a temporary file. > > Signed-off-by: Lukas Fleischer <[email protected]> > --- > lib/libalpm/dload.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) >
Note that this still isn't fixed with the latest refactoring (not sure if 9f139550 was supposed to fix this). If we fail to create a temporary file (around line 224), tempfile still points to NULL and the unlink() invocation might result in a segfault.
