Bug 2245 - Fixed critical issues
[openflowjava.git] / simple-client / src / main / java / org / opendaylight / openflowjava / protocol / impl / clients / SendEvent.java
index 5df57844c3848a44cc59b6fb213b724308524657..db339eb24fb5224e40a863fe826f1590265ba03a 100644 (file)
@@ -30,7 +30,10 @@ public class SendEvent implements ClientEvent {
      * @param msgToSend message to be sent
      */
     public SendEvent(byte[] msgToSend) {
-        this.msgToSend = msgToSend;
+        this.msgToSend = new byte[msgToSend.length];
+        for (int i = 0; i < msgToSend.length; i++) {
+            this.msgToSend[i] = msgToSend[i];
+        }
     }
 
     @Override