summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingSMTP.java')
-rw-r--r--src/org/noreply/fancydress/type3/routing/RoutingSMTP.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java b/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
index 77df42f..b969841 100644
--- a/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
+++ b/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
@@ -50,7 +50,10 @@ public class RoutingSMTP extends RoutingDestination {
byte[] result = new byte[length];
int pos = 0;
- System.arraycopy(CryptoPrimitives.rand(DECODINGHANDLE_LEN), 0, result, pos, DECODINGHANDLE_LEN);
+ if (decodingHandle == null)
+ System.arraycopy(CryptoPrimitives.rand(DECODINGHANDLE_LEN), 0, result, pos, DECODINGHANDLE_LEN);
+ else
+ System.err.println("Using set decoding handle for "+mailbox);
pos += DECODINGHANDLE_LEN;
System.arraycopy(Util.toOctets(mailbox), 0, result, pos, mailbox.length());
pos += mailbox.length();