summaryrefslogtreecommitdiff
path: root/net/yate/patches/110-upstream-crash-fix-r6470.patch
blob: 9c73e57f57d410f54405cf4368644f87b36cefa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/modules/ysipchan.cpp
+++ b/modules/ysipchan.cpp
@@ -3415,8 +3415,10 @@ int YateSIPUDPTransport::process()
     }
 
     SIPMessage* msg = SIPMessage::fromParsing(0,b,res);
-    msg->msgPrint = print;
-    receiveMsg(msg);
+    if (msg) {
+	msg->msgPrint = print;
+	receiveMsg(msg);
+    }
     return 0;
 }