aboutsummaryrefslogtreecommitdiffstats
path: root/grpmi
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-21 09:04:25 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-21 09:04:25 +0000
commita59325af59a054ae88f4385c823fbbfdca42dd14 (patch)
tree9caa8c9f3099c1b1025a9df05964d342f4f209ef /grpmi
parent2d74298f1923924cea2cd8e44d4a3b01a03c4867 (diff)
downloadrpmdrake-a59325af59a054ae88f4385c823fbbfdca42dd14.tar
rpmdrake-a59325af59a054ae88f4385c823fbbfdca42dd14.tar.gz
rpmdrake-a59325af59a054ae88f4385c823fbbfdca42dd14.tar.bz2
rpmdrake-a59325af59a054ae88f4385c823fbbfdca42dd14.tar.xz
rpmdrake-a59325af59a054ae88f4385c823fbbfdca42dd14.zip
don't forget to unlink the tmpfile even when the
signature is not correct
Diffstat (limited to 'grpmi')
-rw-r--r--grpmi/rpm/grpmi_rpm.xs4
1 files changed, 3 insertions, 1 deletions
diff --git a/grpmi/rpm/grpmi_rpm.xs b/grpmi/rpm/grpmi_rpm.xs
index fba96e82..f67fe1f7 100644
--- a/grpmi/rpm/grpmi_rpm.xs
+++ b/grpmi/rpm/grpmi_rpm.xs
@@ -139,8 +139,10 @@ char * verify_sig_(char * file)
}
i = rpmVerifySignature(tmpfile, tag, ptr, count, result);
- if (i != RPMSIG_OK)
+ if (i != RPMSIG_OK) {
+ unlink(tmpfile);
return strdup(result);
+ }
}
unlink(tmpfile);
if (!gpg_sig)