소스 검색

Check error after retrying the unprotect call

Don't return without calling receive callback if the unprotect call succeeds after the addSSRC call
iturrioz 4 년 전
부모
커밋
f143582de0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/dtlssrtptransport.cpp

+ 2 - 1
src/dtlssrtptransport.cpp

@@ -228,7 +228,8 @@ void DtlsSrtpTransport::incoming(message_ptr message) {
 				} else
 					PLOG_WARNING << "SRTP unprotect error, status=" << err
 					             << " SSRC=" << reinterpret_cast<RTP *>(message->data())->ssrc();
-				return;
+					if (err)
+						return;
 			}
 			PLOG_VERBOSE << "Unprotected SRTP packet, size=" << size;
 			message->type = Message::Type::Binary;