From 2baae57d5339e13179aabfc55b9ac9934e646df3 Mon Sep 17 00:00:00 2001 From: bgrozev Date: Wed, 2 Mar 2022 09:00:07 -0700 Subject: [PATCH] ref: Use the HEADER_LENGTH constant. (#252) --- .../java/org/ice4j/attribute/MessageIntegrityAttribute.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java b/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java index f326315..69128c0 100644 --- a/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java +++ b/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java @@ -313,7 +313,7 @@ public class MessageIntegrityAttribute this.hmacSha1Content = calculateHmacSha1(content, offset, length, key); //username - System.arraycopy(hmacSha1Content, 0, binValue, 4, getDataLength()); + System.arraycopy(hmacSha1Content, 0, binValue, HEADER_LENGTH, getDataLength()); return binValue; }