ref: refs/heads/master
commit 8e09b1c89503a6ef263b5b4ed1de889c0c01ab86
Author: Duncan Mac-Vicar P
Date: Thu Nov 12 15:07:34 2009 +0100
forward port
Avoid SEGV if trying to access data of installed packages, that were
deleted behind our back (bnc #530595)
---
zypp/Package.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/zypp/Package.cc b/zypp/Package.cc
index c4de93c..27f95c2 100644
--- a/zypp/Package.cc
+++ b/zypp/Package.cc
@@ -85,7 +85,7 @@ namespace zypp
{
target::rpm::RpmHeader::constPtr header;
target->rpmDb().getData(name(), header);
- return header->tag_changelog();
+ return header ? header->tag_changelog() : Changelog(); // might be deleted behind our back (bnc #530595)
}
WAR << "changelog is not available for uninstalled packages" << std::endl;
return Changelog();
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org