From 5c49f7d2b9371ac98bd38016ea61f36f4b93b20e Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Fri, 28 Mar 2014 00:29:18 +0200 Subject: [PATCH] fix RTPHeader filling by zeros underflow regression from 6a78e2e71c1471b89646a71a1adeb0529cfb73d4 --- toxav/rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toxav/rtp.c b/toxav/rtp.c index ea70ca74..42c9480c 100755 --- a/toxav/rtp.c +++ b/toxav/rtp.c @@ -262,7 +262,7 @@ RTPHeader *extract_header ( const uint8_t *payload, int length ) return NULL; } - memset(_retu->csrc, 0, 16); + memset(_retu->csrc, 0, 16 * sizeof (uint32_t)); _retu->marker_payloadt = *_it; ++_it; @@ -912,4 +912,4 @@ int rtp_terminate_session ( RTPSession *session, Messenger *messenger ) free ( session ); return 0; -} \ No newline at end of file +}