summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2020-04-21 14:33:44 +0200
committerJose <jose@zeroc.com>2020-04-21 14:33:44 +0200
commit8db504dd873e73fe966306f016bfd16400ac4add (patch)
tree2fabeb49a13be6cc0ffb67f60975e6c796b8d61f
parentDisable IceSSL with python/Ice/blobject - Close #810 (diff)
downloadice-8db504dd873e73fe966306f016bfd16400ac4add.tar.bz2
ice-8db504dd873e73fe966306f016bfd16400ac4add.tar.xz
ice-8db504dd873e73fe966306f016bfd16400ac4add.zip
Clone identity in Reference.changeIdentity - Close #645
-rw-r--r--csharp/src/Ice/Reference.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/csharp/src/Ice/Reference.cs b/csharp/src/Ice/Reference.cs
index 45bde9eb1cb..e67b2b5fcca 100644
--- a/csharp/src/Ice/Reference.cs
+++ b/csharp/src/Ice/Reference.cs
@@ -149,7 +149,8 @@ namespace IceInternal
return this;
}
Reference r = _instance.referenceFactory().copy(this);
- r._identity = newIdentity; // Identity is a value type, therefore a copy of newIdentity is made.
+ // Identity is a reference type, therefore we make a copy of newIdentity.
+ r._identity = (Ice.Identity)newIdentity.Clone();
return r;
}