Skip to content
Snippets Groups Projects
Commit 104c6493 authored by Pierre Lespagnol's avatar Pierre Lespagnol
Browse files

socket pair: fix branch on uninitialized memory

fix https://review.jami.net/c/ring-daemon/+/13190

Change-Id: I688043cd505347f86256d5a70f55168318f0e4d9
parent 13ccef93
No related branches found
No related tags found
No related merge requests found
...@@ -466,7 +466,7 @@ SocketPair::readCallback(uint8_t* buf, int buf_size) ...@@ -466,7 +466,7 @@ SocketPair::readCallback(uint8_t* buf, int buf_size)
if (datatype & static_cast<int>(DataType::RTCP)) { if (datatype & static_cast<int>(DataType::RTCP)) {
len = readRtcpData(buf, buf_size); len = readRtcpData(buf, buf_size);
if (len >= 0) { if (len > 0) {
auto header = reinterpret_cast<rtcpRRHeader*>(buf); auto header = reinterpret_cast<rtcpRRHeader*>(buf);
if(header->pt == 201) //201 = RR PT if(header->pt == 201) //201 = RR PT
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment