Commit 58264211 authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed segfault in processing incoming NOTIFY with no associated SUBSCRIPTION....

Fixed segfault in processing incoming NOTIFY with no associated SUBSCRIPTION. Problem reported by Sergey Vointsev.

darcs-hash:20060725121111-7659e-0279651b51148e0dd7a091d46034201cd06b36d3.gz
parent 7433acba
......@@ -698,12 +698,14 @@ int nua_stack_process_notify(nua_t *nua,
if (nh == NULL ||
/* XXX - support forking of subscriptions?... */
(ds->ds_remote_tag && sip->sip_from->a_tag &&
(ds->ds_remote_tag && sip && sip->sip_from->a_tag &&
strcmp(ds->ds_remote_tag, sip->sip_from->a_tag))) {
sip_warning_init(w);
w->w_code = 399;
w->w_host = nua->nua_contact->m_url->url_host;
w->w_port = nua->nua_contact->m_url->url_host;
if (nua->nua_contact && nua->nua_contact->m_url) {
w->w_host = nua->nua_contact->m_url->url_host;
w->w_port = nua->nua_contact->m_url->url_port;
}
w->w_text = "Forking SUBSCRIBEs are not supported";
nta_incoming_treply(irq, 481, "Subscription Does Not Exist",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment