diff options
author | Mukund Sivaraman <muks@banu.com> | 2011-09-29 12:39:13 +0530 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-10-11 12:55:49 +0300 |
commit | cc62aaa761e570b07125bac2c00450b07f4467a7 (patch) | |
tree | f8609873851fc938d9b9dff31ba374ea95c7ada9 /rpmio/rpmio.c | |
parent | 93094580531659ac07a3ef80d2bfb104cbc032cf (diff) | |
download | librpm-tizen-cc62aaa761e570b07125bac2c00450b07f4467a7.tar.gz librpm-tizen-cc62aaa761e570b07125bac2c00450b07f4467a7.tar.bz2 librpm-tizen-cc62aaa761e570b07125bac2c00450b07f4467a7.zip |
rpmio: Don't de-ref lzfile which was freed in lzclose()
Diffstat (limited to 'rpmio/rpmio.c')
-rw-r--r-- | rpmio/rpmio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 683d2218b..2434687a4 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -1176,7 +1176,9 @@ static int lzdClose(FD_t fd) if (fd) { if (rc == -1) { - fd->errcookie = strerror(ferror(lzfile->file)); + fd->errcookie = "lzclose error"; + fd->syserrno = errno; + fd->errcookie = strerror(fd->syserrno); } } |