Browse code

core q/f: quick hack to avoid crashes when destroying sip_msg with incorrect type

Václav Kubart authored on 04/02/2014 10:49:39
Showing 1 changed files
... ...
@@ -499,6 +499,7 @@ int _SipCtrlInterface::send(const AmSipReply &rep, const string& dialog_id,
499 499
 					  stl2cstr(content_type)));
500 500
     }
501 501
 
502
+    msg.type = SIP_REPLY;
502 503
     msg.u.reply = new sip_reply(rep.code,stl2cstr(rep.reason));
503 504
 
504 505
     return