libalpm: Set ret correctly in download_internal()
commit005eab0a080925d0d6f780d751f9019dafbafc64
authorLukas Fleischer <archlinux@cryptocrack.de>
Sun, 24 Jul 2011 11:52:05 +0000 (24 13:52 +0200)
committerDan McGee <dan@archlinux.org>
Mon, 25 Jul 2011 13:48:02 +0000 (25 08:48 -0500)
treeb2318e9248de7a521ad81478a24a5a30899217a4
parent297cd7897bfe060ce46d703e15ad7cbe37aedced
libalpm: Set ret correctly in download_internal()

Immediately jump to the cleanup code after setting the return code to -1
in case rename() fails. Otherwise, it will be reset to 0 right after we
leave the if branch.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c