diff --git a/transport-sctp/src/main/java/io/netty/channel/sctp/SctpMessage.java b/transport-sctp/src/main/java/io/netty/channel/sctp/SctpMessage.java index f78d7e5b7a..d6c3158860 100644 --- a/transport-sctp/src/main/java/io/netty/channel/sctp/SctpMessage.java +++ b/transport-sctp/src/main/java/io/netty/channel/sctp/SctpMessage.java @@ -164,7 +164,7 @@ public final class SctpMessage extends DefaultByteBufHolder { if (msgInfo == null) { return new SctpMessage(protocolIdentifier, streamIdentifier, unordered, content().duplicate()); } else { - return new SctpMessage(msgInfo, content().copy()); + return new SctpMessage(msgInfo, content().duplicate()); } }