Browse code

b2b media b/f: fix crash if 200OK arrived after rtp timeout event

thanks Michael Furmur for debugging, reporting and providing the fix

Václav Kubart authored on 09/04/2014 08:30:10
Showing 1 changed files
... ...
@@ -957,7 +957,7 @@ void AmB2BMedia::updateRelayStream(AmRtpStream *stream, AmB2BSession *session,
957 957
 void AmB2BMedia::updateStreams(bool a_leg, const AmSdp &local_sdp, const AmSdp &remote_sdp, RelayController *ctrl)
958 958
 {
959 959
   TRACE("%s (%c): updating streams with local & remote SDP\n",
960
-      a_leg ? a->getLocalTag().c_str() : b->getLocalTag().c_str(),
960
+      a_leg ? (a ? a->getLocalTag().c_str() : "NULL") : (b ? b->getLocalTag().c_str() : "NULL"),
961 961
       a_leg ? 'A': 'B');
962 962
 
963 963
   /*string s;