summaryrefslogtreecommitdiff
blob: 5a9d328da9152aedc613af860db8c43556675f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Resolve segfault in OpenSP::ParsedSystemId::unparse.
Patch taken from Debian.
https://bugs.gentoo.org/show_bug.cgi?id=196230
--- a/lib/ExtendEntityManager.cxx
+++ b/lib/ExtendEntityManager.cxx
@@ -1238,7 +1238,8 @@
 }
 
 StorageObjectSpec::StorageObjectSpec(const StorageObjectSpec& x)
-: codingSystemName(x.codingSystemName),
+: storageManager(x.storageManager),
+  codingSystemName(x.codingSystemName),
   codingSystem(x.codingSystem),
   specId(x.specId),
   baseId(x.baseId),
@@ -1253,6 +1254,7 @@
 StorageObjectSpec& StorageObjectSpec::operator=(const StorageObjectSpec& x)
 {
   if (this != &x) {
+    storageManager = x.storageManager;
     codingSystemName = x.codingSystemName;
     codingSystem = x.codingSystem;
     specId = x.specId;