Index: srtp/srtp/srtp.c |
diff --git a/srtp/srtp/srtp.c b/srtp/srtp/srtp.c |
index f8e2fc43d35dfb8b624196aaba52de3dde52d5a0..eac2a8af432faf6d9c9cd2962c57f2079cd7024b 100644 |
--- a/srtp/srtp/srtp.c |
+++ b/srtp/srtp/srtp.c |
@@ -2378,9 +2378,9 @@ srtp_protect_rtcp_aead (srtp_t ctx, srtp_stream_ctx_t *stream, |
} |
} |
/* |
- * put the idx# into network byte order and process it as AAD |
+ * Process the sequence# as AAD |
*/ |
- tseq = htonl(*trailer); |
+ tseq = *trailer; |
status = cipher_set_aad(stream->rtcp_cipher, (uint8_t*)&tseq, |
sizeof(srtcp_trailer_t)); |
if (status) { |
@@ -2529,9 +2529,9 @@ srtp_unprotect_rtcp_aead (srtp_t ctx, srtp_stream_ctx_t *stream, |
} |
/* |
- * put the idx# into network byte order, and process it as AAD |
+ * Process the sequence# as AAD |
*/ |
- tseq = htonl(*trailer); |
+ tseq = *trailer; |
status = cipher_set_aad(stream->rtcp_cipher, (uint8_t*)&tseq, |
sizeof(srtcp_trailer_t)); |
if (status) { |