Commit a446f166 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Fixed request line handling bug in nta_msg_request_complete().

darcs-hash:20060317124741-65a35-e02e04b70f7a1e7980427fdb317c3b7918657a30.gz
parent 32f8d5eb
...@@ -3027,9 +3027,12 @@ int nta_msg_request_complete(msg_t *msg, ...@@ -3027,9 +3027,12 @@ int nta_msg_request_complete(msg_t *msg,
} }
if (!request_uri) if (!request_uri)
return -1; return -1;
if (method || method_name) if (method || method_name) {
sip->sip_request = sip_request_t *rq =
sip_request_create(home, method, method_name, request_uri, NULL); sip_request_create(home, method, method_name, request_uri, NULL);
if (msg_header_insert(msg, (msg_pub_t *)sip, (msg_header_t *)rq) < 0)
return -1;
}
if (!sip->sip_request) if (!sip->sip_request)
return -1; return -1;
...@@ -6067,6 +6070,9 @@ nta_outgoing_t *nta_outgoing_mcreate(nta_agent_t *agent, ...@@ -6067,6 +6070,9 @@ nta_outgoing_t *nta_outgoing_mcreate(nta_agent_t *agent,
nta_outgoing_t *orq = NULL; nta_outgoing_t *orq = NULL;
if (msg == NONE)
msg = nta_msg_create(agent, 0);
if (msg && agent) { if (msg && agent) {
ta_list ta; ta_list ta;
ta_start(ta, tag, value); ta_start(ta, tag, value);
...@@ -9914,7 +9920,7 @@ int nta_tport_keepalive(nta_outgoing_t *orq) ...@@ -9914,7 +9920,7 @@ int nta_tport_keepalive(nta_outgoing_t *orq)
{ {
tport_t *tp; tport_t *tp;
assert(orq); assert(orq); (void)tp;
return tport_keepalive(orq->orq_tport, orq->orq_tpn); return tport_keepalive(orq->orq_tport, orq->orq_tpn);
} }
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