Commit 5f796556 authored by Pekka Pessi's avatar Pekka Pessi

Fixed nua/test_proxy.c.

Registrar was not returning all contacts in 200 OK to response to REGISTER.

darcs-hash:20060503091422-65a35-93fe48b56d2666bfeab6ae41711514f9f25b435d.gz
parent 1ebf011a
......@@ -863,8 +863,11 @@ sip_contact_t *binding_contacts(su_home_t *home, struct binding *bindings)
if (b->expires <= now)
continue;
*mm = sip_contact_copy(home, b->contact);
expires = su_sprintf(home, "expires=%u", (unsigned)(b->expires - now));
msg_header_add_param(home, (*mm)->m_common, expires);
if (*mm) {
expires = su_sprintf(home, "expires=%u", (unsigned)(b->expires - now));
msg_header_add_param(home, (*mm)->m_common, expires);
mm = &(*mm)->m_next;
}
}
return retval;
......
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