- fixed possible crash if additional headers are passed, but no message

body.


git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@706 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 19 years ago
parent c6d5dec6f1
commit 2d6893261e

@ -296,12 +296,16 @@ int SipCtrlInterface::send(const AmSipReply &rep)
}
char* hdrs_buf = NULL;
char* c = hdrs_buf;
if (hdrs_len) {
hdrs_buf = new char[hdrs_len];
char* c = hdrs_buf;
c = hdrs_buf = new char[hdrs_len];
copy_hdrs_wr(&c,msg.hdrs);
content_type_wr(&c,stl2cstr(rep.content_type));
if(!rep.body.empty()) {
content_type_wr(&c,stl2cstr(rep.content_type));
}
}
int ret = tl->send_reply(get_trans_bucket(h),(sip_trans*)t,

Loading…
Cancel
Save