Commit af45b8f2 authored by François Grisez's avatar François Grisez

Fix crash occuring when a REGISTER containing a contact URI without scheme is received

e.g. `Contact: lime` is parsed as URI without scheme and with 'lime' as hostname
parent 0ba87b00
Pipeline #6546 passed with stages
in 24 minutes and 48 seconds
......@@ -256,7 +256,8 @@ static bool checkStarUse(const sip_contact_t *contact, int expires) {
}
++count;
if ('*' == contact->m_url[0].url_scheme[0]) {
const char *scheme = contact->m_url[0].url_scheme;
if (scheme && '*' == scheme[0]) {
if (count > 1 || 0 != expires)
return false;
starFound = true;
......
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