[Rpm-maint] [PATCH] rpmio: Don't de-ref lzfile which was freed in lzclose()
y at osuosl.org
y at osuosl.org
Thu Sep 29 07:16:00 UTC 2011
From: Mukund Sivaraman <muks at banu.com>
---
rpmio/rpmio.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 683d221..65e2a85 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -1176,7 +1176,8 @@ static int lzdClose(FD_t fd)
if (fd) {
if (rc == -1) {
- fd->errcookie = strerror(ferror(lzfile->file));
+ fd->syserrno = errno;
+ fd->errcookie = strerror(fd->syserrno);
}
}
--
1.7.4.4
More information about the Rpm-maint
mailing list