summaryrefslogtreecommitdiff
path: root/toxav/rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r--toxav/rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c
index 8f6f0be7..8eca46d4 100644
--- a/toxav/rtp.c
+++ b/toxav/rtp.c
@@ -517,7 +517,7 @@ int rtp_handle_packet ( void *object, IP_Port ip_port, uint8_t *data, uint32_t l
517 RTPSession *_session = object; 517 RTPSession *_session = object;
518 RTPMessage *_msg; 518 RTPMessage *_msg;
519 519
520 if ( !_session || length < 13 ) /* 12 is the minimum length for rtp + desc. byte */ 520 if ( !_session || length < 13 + crypto_secretbox_MACBYTES) /* 12 is the minimum length for rtp + desc. byte */
521 return -1; 521 return -1;
522 522
523 uint8_t _plain[MAX_UDP_PACKET_SIZE]; 523 uint8_t _plain[MAX_UDP_PACKET_SIZE];