diff --git a/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java b/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java index a963bb94..a1e4907f 100644 --- a/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java +++ b/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java @@ -283,7 +283,7 @@ public byte[] encode( char msgType = (char) (((content[0] & 0xFF) << 8) | (content[1] & 0xFF)); - if(Message.isRequestType(msgType)) + if(Message.isRequestType(msgType) || Message.isIndicationType(msgType)) { /* attribute part of a request, use the remote key */ key = stunStack.getCredentialsManager().getRemoteKey(username,