When Asterisk sends a reinvite negotiating T38 faxing, it's possible a
crash can occur if the response contains a m=image and zero port. The
reinvite callback code now checks session_media to see if it is null or
not before trying to access the udptl variable on it.
ASTERISK-29305
Change-Id: I1dfc51c5fa586e38579ede4bc228edee213ccaa9
* If there is a session_media object, but no udptl object available
* then it's assumed the stream was declined.
*/
- if (!session_media->udptl) {
+ if (session_media && !session_media->udptl) {
session_media = NULL;
}