diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-21 09:04:25 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-21 09:04:25 +0000 |
commit | a59325af59a054ae88f4385c823fbbfdca42dd14 (patch) | |
tree | 9caa8c9f3099c1b1025a9df05964d342f4f209ef | |
parent | 2d74298f1923924cea2cd8e44d4a3b01a03c4867 (diff) | |
download | rpmdrake-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
-rw-r--r-- | grpmi/rpm/grpmi_rpm.xs | 4 |
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) |